Created
March 25, 2016 11:10
-
-
Save eripa/a37a792935fa286b0e41 to your computer and use it in GitHub Desktop.
docker wait for other service
This file contains hidden or 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
echo "Stalling for MySQL.. (${MYSQL_PORT_3306_TCP_ADDR}:${MYSQL_PORT_3306_TCP_PORT})" | |
while true; do | |
nc -q 1 "$MYSQL_PORT_3306_TCP_ADDR" "$MYSQL_PORT_3306_TCP_PORT" 2>/dev/null && break | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment