bash-wait-for-it
v1.0.2
Published
bash-wait-for-it ================
Downloads
1
Readme
bash-wait-for-it
Convenience inclusion of the legendary wait-for-it.sh
-script found here. There are likely other sources.
How to use?
My use case stems from orchestrating and synchronizing docker containers in docker compose. This could be an example:
version: '3.5'
services:
elasticsearch:
image: elasticsearch
ports:
- 9200:9200
node:
image: [your-image-that-uses-elasticsearch-and-has-bash]
command: /wait-for-it.sh elasticsearch:9200 -- npm start
volumes:
- ${PWD}/node_modules/bash-wait-for-it/wait-for-it.sh:/wait-for-it.sh
The directory you're running docker-compose from must have this library installed.