zouxinghao / wait-for-docker

Pure bash script for controlling start-up order of docker in docker-compose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wait-for-docker

wait-for-docker is a pure bash for controlling the start-up order in dcoker-compose. It can be used:

  1. to see if we can access specific IP and port
  2. to check the avaliability of functional model, like DB
  3. to check wether some specific file exist

Since it is a pure bash script, it does not have any external dependencies.

Update: add c code and cmake file as an optional method, add Dockerfile to compile C code.

Usage

Example

wait-for-it.sh file [-rxw] [ti timeout] [-- command args]
-h,       show the help message
-x,       wait for the path to be executable
-r,       wait for the path to be readable
-w,       wait for the path to be writable

About

Pure bash script for controlling start-up order of docker in docker-compose


Languages

Language:C 72.8%Language:Shell 22.9%Language:CMake 4.3%