1.0.2 • Published 3 years ago

bash-wait-for-it v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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.

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago