Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NRCAN OS-Server[2.5.0] AWS AMI creation: latest tag not found for MongoDB and Redis fix #341

Merged
merged 4 commits into from
Jun 6, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions docker/deployment/scripts/aws_osserver_init.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash -e

MONGO_VERSION=3.4.10
REDIS_VERSION=4.0.6
echo ""
echo "------------------------------------------------------------------------"
echo "Creating data volume regdata to persist registry data for provision"
Expand Down Expand Up @@ -39,7 +40,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 @@ -48,7 +49,7 @@ echo "Pulling redis from DockerHub"
echo "------------------------------------------------------------------------"
echo ""
sleep 1
docker pull redis:4.0.6
docker pull redis:$REDIS_VERSION
sleep 1

echo ""
Expand All @@ -61,10 +62,10 @@ 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
docker push localhost:5000/mongo
docker tag redis localhost:5000/redis
docker push localhost:5000/redis
docker tag mongo:$MONGO_VERSION localhost:5000/mongo:latest
docker push localhost:5000/mongo:latest
docker tag redis:$REDIS_VERSION localhost:5000/redis:latest
docker push localhost:5000/redis:latest
docker service rm registry
docker swarm leave -f
sleep 1
Expand Down