Created
October 10, 2016 13:35
-
-
Save jhuiting/a9f9acae15083d8b8ccf49ff5186c466 to your computer and use it in GitHub Desktop.
Docker healthcheck bash
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
echo "Waiting for the API to be started"; | |
until [ "`docker inspect -f {{.State.Health.Status}} $(docker-compose ps -q api)`" = "healthy" ]; do | |
sleep 0.5; | |
echo -n "." | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment