diff --git a/README.md b/README.md index 1835acb..c3110a2 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,12 @@ +## What's different compared to the original fork? + +Just a minor thing - the script will notify when the service is ready. +Without it, when the service is already available it looks as if it was frozen. + +**All kudos to orignal author. I created a pull request, but I needed that now, so I created my own image in docker hub (bartoszjarmuz/wait-for-dependencies)** + +https://hub.docker.com/repository/docker/bartoszjarmuz/wait-for-dependencies + ## Example usage: Sample `docker-compose.yml`: diff --git a/entrypoint.sh b/entrypoint.sh index ddb63a2..2cd2134 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -13,8 +13,9 @@ wait_for() { exit 1 fi echo "sleeping" - sleep $SLEEP_LENGTH + sleep $SLEEP_LENGTH done + echo "Service $1:$2 available!" } for var in "$@"