Skip to content

simplificator/docker-stack-wait

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Stack Wait

Waits for a docker stack deploy to complete.

Example Usage:

docker-stack-wait.sh $stack_name

Help output:

$ ./docker-stack-wait.sh -h
docker-stack-wait.sh [opts] stack_name
  -h:     this help message
  -s sec: frequency to poll service state (default 5 sec)
  -t sec: timeout to stop waiting

Usage as container

$ docker run --rm -it \
           -v `pwd`/docker-compose.yml:/docker-compose.yml \
           -v /var/run/docker.sock:/var/run/docker.sock \
           simplificator/docker-stack-wait $STACK_NAME

or with an alias

$ alias docker-stack-wait='docker run --rm -i -v `pwd`/docker-compose.yml:/docker-compose.yml -v /var/run/docker.sock:/var/run/docker.sock simplificator/docker-stack-wait'

The respective container is available on Docker Hub and built with Docker Hub Automated Builds.

About

Wait for a docker stack deploy to complete

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 97.7%
  • Dockerfile 2.3%