Skip to content

Go package to test and wait on the availability of a TCP host and port. This package is port of wait-for-it.sh

License

Notifications You must be signed in to change notification settings

aliuygur/wait-for

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wait-for

Go package to test and wait on the availability of a TCP host and port. This package is Go port of wait-for-it.sh

Usage

wait-for:
  -it value
        <host:port> [host2:port,...] comma seperated list of services
  -t int
        timeout (default 20)

Example

simple

$ wait-for -it github.com:80 && echo "github is up!"
services are ready!
github is up!

multiple hosts and custom timeout

$ wait-for -t 5 -it github.com:80,bitbucket.com:80 && echo "github and bitbucket are up!"
services are ready!
github and bitbucket are up!

docker users

~2.7MB docker image.

$ docker run --rm alioygur/wait-for -it google.com:80
services are ready!

About

Go package to test and wait on the availability of a TCP host and port. This package is port of wait-for-it.sh

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages