Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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`:
Expand Down
3 changes: 2 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"
Expand Down