Skip to content

Commit

Permalink
Update scripts to include a short sleep after setting up the registry
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-kenzan committed Apr 14, 2017
1 parent 21a0bdd commit b4c7e41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/pages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ docker build -t 127.0.0.1:30400/kr8sswordz:$TAG -f applications/kr8sswordz-pages
#Setup the proxy for the registry
docker stop socat-registry; docker rm socat-registry; docker run -d -e "REGIP=`minikube ip`" --name socat-registry -p 30400:5000 chadmoon/socat:latest bash -c "socat TCP4-LISTEN:5000,fork,reuseaddr TCP4:`minikube ip`:30400"

echo "5 second sleep to make sure the registry is ready"
sleep 5;

#Push the images
docker push 127.0.0.1:30400/kr8sswordz:$TAG

Expand Down
1 change: 1 addition & 0 deletions scripts/server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ docker build -t 127.0.0.1:30400/services:$TAG -f applications/crossword/Dockerfi
#Setup the proxy for the registry
docker stop socat-registry; docker rm socat-registry; docker run -d -e "REGIP=`minikube ip`" --name socat-registry -p 30400:5000 chadmoon/socat:latest bash -c "socat TCP4-LISTEN:5000,fork,reuseaddr TCP4:`minikube ip`:30400"

echo "5 second sleep to make sure the registry is ready"
sleep 5;

#Push the images
Expand Down

0 comments on commit b4c7e41

Please sign in to comment.