Created
February 24, 2014 19:05
-
-
Save cpuguy83/9194712 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
post-start script | |
while [ -z $(docker ps | grep skydns) ]; do | |
echo "Waiting for DNS container to start" | |
sleep 1 | |
done | |
ip=$(docker inspect -f '{{ .NetworkSettings.IPAddress }}' skydns) | |
until `curl --output /dev/null --silent --head --connect-timeout 3 http://$ip:8080/skydns/services/`; do | |
echo "Waiting for DNS service to be ready for connections" | |
sleep 3 | |
done | |
echo "DNS Started" | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment