https://github.com/miklosn/waitport
CLI utility to wait for a port to be in listening state
https://github.com/miklosn/waitport
entrypoint golang-application tcp
Last synced: 11 months ago
JSON representation
CLI utility to wait for a port to be in listening state
- Host: GitHub
- URL: https://github.com/miklosn/waitport
- Owner: miklosn
- Created: 2019-05-12T07:19:13.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-21T18:07:50.000Z (over 6 years ago)
- Last Synced: 2023-04-03T14:07:10.354Z (about 3 years ago)
- Topics: entrypoint, golang-application, tcp
- Language: Go
- Size: 2.44 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# waitport
Waits for a tcp port to be in LISTEN state. Useful for waiting for dependencies in a docker entrypoint etc.
Supports a configurable timeout (default: 30s) and exits 1 if it is exceeded.
## Install
`curl -s i.jpillora.com/miklosn/waitport | bash`
## Example
```
waitport -t 10s 9000 || exit 1
```