-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #717 from Lingghh/dev/add_enhance_tag
✨增加‘增强’标签;调整github 镜像构建内容
- Loading branch information
Showing
3 changed files
with
56 additions
and
9 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
function wait_for_service(){ | ||
SERVICE=${1/:/' '} | ||
until nc -vz $SERVICE > /dev/null; do | ||
>&2 echo "$SERVICE is unavailable - sleeping" | ||
sleep 2 | ||
done | ||
>&2 echo "$SERVICE is up" | ||
} | ||
|
||
function wait_for() { | ||
for service in "$@" | ||
do | ||
wait_for_service $service | ||
done | ||
} | ||
|
||
wait_for "$@" |