Public Repository

Last pushed: a year ago
Short Description
Short description is empty for this repo.
Full Description

Configuration of the Elastic Search Waiter can be done through the following environment variables:

  • ELASTICSEARCH_HOST (mandatory)
  • ELASTICSEARCH_PORT (mandatory)
  • WAITER_ATTEMPTS (mandatory): Number of attempts the waiter will ping the service. If there is no succesful ping after that given number of attempts, it means that the service is expected to never be ready for the current context, so the process will exit with error code 1.
  • WAITER_ATTEMPT_SLEEPTIME (mandatory): Amount of time the waiter will wait in seconds after an unsuccesful ping attempt. After that time, a new attempt will begin.
  • WAITER_DEBUG (optional, default: false): If true, it will show in console the response of the ping command executed on attemps, otherwise it will be hidden.

Example:

$ docker run --name elasticsearch_server -d elasticsearch:1.5.2

51321a23d283005344502b330b5249248f70f0c5ac4cee36fb6356a17f078034

$ docker run -it --rm --link elasticsearch_server:elasticsearch_server \
-e ELASTICSEARCH_HOST=elasticsearch_server \
-e ELASTICSEARCH_PORT=9200 \
-e WAITER_DEBUG=false \
-e WAITER_ATTEMPTS=20 \
-e WAITER_ATTEMPT_SLEEPTIME=1 \
theypsilon/waiter-elasticsearch:0.1.21

[WAITER] WAITER_ATTEMPTS: 20 | WAITER_ATTEMPT_SLEEPTIME: 1
[WAITER] ....... OK

Docker Pull Command
Owner
theypsilon

Comments (0)