Skip to content

Commit

Permalink
Set MongoDB version as a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
padmassun authored Jun 6, 2018
1 parent 9d23302 commit af6543d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/deployment/scripts/aws_osserver_init.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash -e

MONGO_VERSION=3.4.10
echo ""
echo "------------------------------------------------------------------------"
echo "Creating data volume regdata to persist registry data for provision"
Expand Down Expand Up @@ -39,7 +39,7 @@ echo "Pulling mongo from DockerHub"
echo "------------------------------------------------------------------------"
echo ""
sleep 1
docker pull mongo:3.4.10
docker pull mongo:$MONGO_VERSION
sleep 1

echo ""
Expand All @@ -61,7 +61,7 @@ docker tag nrel/openstudio-server:$OSSERVER_DOCKERHUB_TAG localhost:5000/openstu
docker push localhost:5000/openstudio-server
docker tag nrel/openstudio-rserve:$OSSERVER_DOCKERHUB_TAG localhost:5000/openstudio-rserve
docker push localhost:5000/openstudio-rserve
docker tag mongo localhost:5000/mongo:latest
docker tag mongo:SMONGO_VERSION localhost:5000/mongo:latest
docker push localhost:5000/mongo:latest
docker tag redis localhost:5000/redis
docker push localhost:5000/redis
Expand Down

1 comment on commit af6543d

@padmassun
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.