https://github.com/outstand/wait-for-consul
Wait for consul to be up and bootstrapped
https://github.com/outstand/wait-for-consul
Last synced: about 1 year ago
JSON representation
Wait for consul to be up and bootstrapped
- Host: GitHub
- URL: https://github.com/outstand/wait-for-consul
- Owner: outstand
- License: apache-2.0
- Created: 2016-06-01T17:34:33.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-01T17:40:45.000Z (about 10 years ago)
- Last Synced: 2025-01-21T08:11:43.669Z (over 1 year ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wait-for-consul
This docker image is intended to be used with https://github.com/outstand/consul_stockpile to protect against a race condition when setting up a cluster.
We use this at Outstand to delay the startup of `amazon-ecs-agent` until consul is fully bootstrapped.
Example RancherOS service:
```yaml
wait-for-consul:
image: outstand/wait-for-consul:latest
labels:
io.rancher.os.scope: system
io.rancher.os.after: consul-client
io.rancher.os.detach: "false"
environment:
CONSUL_HOST: 172.18.0.1
```
You can then use `io.rancher.os.after: wait-for-consul` in another service description.