Created
April 5, 2018 11:28
-
-
Save alexandreprates/28350e122e1f6b3092ee540c62ee0bf5 to your computer and use it in GitHub Desktop.
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
| #!/usr/bin/env sh | |
| echo Checking if the service port is available | |
| until nc -z <service> <port>; do | |
| printf '.' | |
| sleep 5 | |
| done | |
| echo Service available starting app | |
| exec $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment