bash-wait-for-it

1.0.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i bash-wait-for-it

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

6.03 kB

Total Files

3

Last publish

Collaborators

  • ath88