A tool to wait for services and execute command. Useful for Docker containers that depend on slow to start services (like almost everything).
Project description
A tool to wait for services and execute command. Useful for Docker containers that depend on slow to start services (like almost everything).
Free software: BSD license
Installation
pip install holdup
Documentation
Usage: holdup [-h] [-f] [-t SECONDS] [-n] [service [service ...]] [-- command [arg [arg ...]]]
Wait for services to be ready and optionally exec command.
- positional arguments:
service A service to wait for. Supported protocols: “tcp://host:port/”, “unix:///path/to/domain.sock”. command An optional command to exec.
- optional arguments:
- -h, --help
show this help message and exit
- -t SECONDS, --timeout SECONDS
Time to wait for services to be ready. Default: 5.0
- -n, --no-abort
Ignore failed services. This makes holdup return 0 exit code regardless of services actually responding.
Development
To run the all tests run:
tox
Note, to combine the coverage data from all the tox environments run:
Windows |
set PYTEST_ADDOPTS=--cov-append tox |
---|---|
Other |
PYTEST_ADDOPTS=--cov-append tox |
Changelog
0.1.0 (2016-04-21)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file holdup-0.1.1.tar.gz
.
File metadata
- Download URL: holdup-0.1.1.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
da417ea85bad96c5f2aa4c80c66c62fcd6b24569d970c97068f6bd60cef3e231
|
|
MD5 |
881bdddeb9a91662caa5cfa54140e615
|
|
BLAKE2b-256 |
97119d39c2d5a7db137a4e7feacff19f985e91ec56743851cdf2a38fbd39d1a0
|
File details
Details for the file holdup-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: holdup-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
82703ba1ced21cf70ad13c9bbd36e0e857c55ad4a2abbc8d78992b9c40ac3b6c
|
|
MD5 |
656a1fe72b909d05b5e09e3c7f89ace6
|
|
BLAKE2b-256 |
4ec610fabffe75f598170c0ca6c8b468fe5f97df896dba0618c4e12ca56f9b78
|