From 6d336e1031806e72226e7bffc1ecbb94921292de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Jarmu=C5=BC?= <33833009+bartosz-jarmuz@users.noreply.github.com> Date: Wed, 28 Oct 2020 14:02:14 +0100 Subject: [PATCH 1/3] Update entrypoint.sh --- entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/entrypoint.sh b/entrypoint.sh index ddb63a2..d342278 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -15,6 +15,7 @@ wait_for() { echo "sleeping" sleep $SLEEP_LENGTH done + echo "Service $1:$2 available!" } for var in "$@" From 48f0e9f9bec3858b31ef7d415a37f78947f24990 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Jarmu=C5=BC?= <33833009+bartosz-jarmuz@users.noreply.github.com> Date: Wed, 28 Oct 2020 18:54:38 +0100 Subject: [PATCH 2/3] Update README.md --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) 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`: From b8c0ae94b90f35bb64e7ef3a03b3c6d3e90ec1a7 Mon Sep 17 00:00:00 2001 From: Bartosz Jarmuz Date: Wed, 28 Oct 2020 18:58:25 +0100 Subject: [PATCH 3/3] change line endings to linux --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index d342278..2cd2134 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -13,7 +13,7 @@ wait_for() { exit 1 fi echo "sleeping" - sleep $SLEEP_LENGTH + sleep $SLEEP_LENGTH done echo "Service $1:$2 available!" }