custom output data name and mongo container name

Former-commit-id: 7eae18955ac977ebfec35f241838975567430d9a
This commit is contained in:
Michael T. Kelbaugh
2020-03-13 17:46:12 -04:00
parent 90b3e4053e
commit bf8e8aa2b1

View File

@@ -2,11 +2,10 @@
MODEL_NAME=$1
YEAR=$2
DB_CONTAINER=${3:-"simon_mongodb"}
JSON_DATA=${3:-"/"$YEAR"_"$MODEL_NAME}".json"
DB_CONTAINER=${4:-"simon_mongodb"}
JSON_DATA="/"$YEAR"_"$MODEL_NAME".json"
docker start "simon_mongodb"
docker start $DB_CONTAINER
# retrieve the document from the database and save it as a JSON file
docker exec -it $DB_CONTAINER \