Waits until the expected HTTP STATUS CODE is returned from a given HTTP URL
5.4K
Configuration of the REST Waiter can be done through the following environment variables:
Example:
$ docker run --name elasticsearch_server -d elasticsearch:1.5.2
f14ac8441f2614748e461acd4ab0417d77a59a06e25fab240a88406736d15107
$ docker run -it --rm --link elasticsearch_server:elasticsearch_server
-e HTTP_URL=http://elasticsearch_server:9200/_cluster/health
-e HTTP_STATUS_CODE=200
-e WAITER_DEBUG=false
-e WAITER_ATTEMPTS=20
-e WAITER_ATTEMPT_SLEEPTIME=1
theypsilon/waiter-rest:0.1.21 && echo DONE!
[WAITER] WAITER_ATTEMPTS: 20 | WAITER_ATTEMPT_SLEEPTIME: 1 [WAITER] .. OK DONE!
Content type
Image
Digest
Size
3.9 MB
Last updated
about 10 years ago
docker pull theypsilon/waiter-rest:0.1.23