DCI umb module
Project description
DCI UMB
DCI UMB is a tool that listen on an amqps broker, filter on a specific topic and propagate any event via http post request.
TLDR
$ sudo yum -y install https://packages.distributed-ci.io/dci-release.el7.noarch.rpm
$ sudo yum -y install dci-umb
$ dci-umb \
--key ./broker.key \
--crt ./broker.crt \
--ca ./broker.ca \
--broker amqps://example.org:5671 \
--source topic://VirtualTopic.eng \
--destination http://localhost:5000/events
Run as a service
If you want to run dci-umb as a systemd service, you can edit /etc/dci-umb/config
file and modify the config.
Then you can run systemctl start dci-umb
Example
Create a python virtual environment
python3 -m venv venv
source venv/bin/activate
Install dependencies
pip install -r sandbox/requirements.txt
pip install -r requirements.txt
Start the sandbox server:
python sandbox/server.py
In another terminal start dci-umb with parameters
source venv/bin/activate
PYTHONPATH=. python dci_umb/main.py \
--key ./broker.key \
--crt ./broker.crt \
--ca ./broker.ca \
--broker amqps://example.org:5671 \
--source topic://VirtualTopic.eng \
--destination http://localhost:5000/events
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
dci-umb-0.3.0.tar.gz
(8.7 kB
view details)
Built Distribution
dci_umb-0.3.0-py2-none-any.whl
(11.3 kB
view details)
File details
Details for the file dci-umb-0.3.0.tar.gz
.
File metadata
- Download URL: dci-umb-0.3.0.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/2.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37d2e09f1cf97dc0b5f069930c49561f155011ee94a971583067792e615d1775 |
|
MD5 | 64c32db6acb19a002d119c4d69a214ff |
|
BLAKE2b-256 | b0698a59cad132f9d7ba9f844aeb9845c3b3a84afb0e45f0fa895793921a40de |
File details
Details for the file dci_umb-0.3.0-py2-none-any.whl
.
File metadata
- Download URL: dci_umb-0.3.0-py2-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/2.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5676ff6687b62bcc9e5b72808df74597c73b5bc0dffc344c3206cfb62421d17b |
|
MD5 | d4810a278cdace9d4bdf1ca2c8629eb1 |
|
BLAKE2b-256 | 9d102e202469e6fd69da5e21d3e46642dd3972aaa77f9ce7b2cdff3de60c3220 |