Skip to content

Instantly share code, notes, and snippets.

@cpuguy83
Created February 24, 2014 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cpuguy83/9194712 to your computer and use it in GitHub Desktop.
Save cpuguy83/9194712 to your computer and use it in GitHub Desktop.
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