Last active
August 22, 2024 09:58
-
-
Save haf/933429f47874e14a1d7444b330167167 to your computer and use it in GitHub Desktop.
Wait for URL (2)
This file contains hidden or 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
#!/usr/bin/env sh | |
curl --head -X GET \ | |
--retry 20 --retry-connrefused --retry-delay 1 \ | |
-s -o /dev/null \ | |
-w \"%{http_code}\" \ | |
http://localhost:9000/health \ | |
| grep -q 200 \ | |
|| exit 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment