dci-umb-0.4.1
توضیحات
DCI umb module
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX :: Linux |
| نام فایل | dci-umb-0.4.1 |
| نام | dci-umb |
| نسخه کتابخانه | 0.4.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Distributed CI team |
| ایمیل نویسنده | distributed-ci@redhat.com |
| آدرس صفحه اصلی | https://github.com/redhat-cip/dci-umb |
| آدرس اینترنتی | https://pypi.org/project/dci-umb/ |
| مجوز | Apache v2.0 |
# 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
```console
$ 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
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
| - | python-qpid-proton |
نحوه نصب
نصب پکیج whl dci-umb-0.4.1:
pip install dci-umb-0.4.1.whl
نصب پکیج tar.gz dci-umb-0.4.1:
pip install dci-umb-0.4.1.tar.gz