Sign inSign up

geckosoftlabs/wait-for-status

By geckosoftlabs

Updated over 2 years ago

Image
1

7.7K

geckosoftlabs/wait-for-status repository overview

Wait for status

Wait for curl requests to return a specific status code

Usage
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
Arguments and Environment variables

The only required argument is the URI to curl.

The following environment variables act as substitute for the arguments:

Env varArgumentDefault value
RETRY_EVERYretry_in1 (seconds)
STATUS_CODEstatus_code200
WAIT_URIuri_to_curl (required)
TIMEOUTtimeout5 (seconds)

Tag summary

Content type

Image

Digest

sha256:082fb2d70

Size

7.4 MB

Last updated

over 2 years ago

docker pull geckosoftlabs/wait-for-status