Wait for curl requests to return a specific status code
docker run --rm geckosoftlabs/wait-for-status uri_to_curl [status_code=200] [timeout=5] [retry_in=1]
i.e.
docker run --rm geckosoftlabs/wait-for-status https://keycloak.local.gkops.net/health/ready 200
# tries for 5 seconds to get a 200 from Keycloak, waiting 1 second after every failure
The only required argument is the URI to curl.
The following environment variables act as substitute for the arguments:
| Env var | Argument | Default value |
|---|---|---|
| RETRY_EVERY | retry_in | 1 (seconds) |
| STATUS_CODE | status_code | 200 |
| WAIT_URI | uri_to_curl | (required) |
| TIMEOUT | timeout | 5 (seconds) |
Content type
Image
Digest
sha256:082fb2d70…
Size
7.4 MB
Last updated
over 2 years ago
docker pull geckosoftlabs/wait-for-status