A microservice for retranslating Jira webhooks to a RabbitMQ server
Project description
This service works as a bridge between a Jira and a RabbitMQ instances:
receives HTTP requests from the Jira server;
sends them to the MQ server via AMQP protocol.
Installation
The service requires Python 3.5 or newer. Install and update using pip. Gunicorn is also required:
pip install jira_rabbitmq_webhook gunicorn
Configuration
You need to create a configuration file for the service. Sample file can be found in config directory (it is copied to the config directory of your python environment after installation). Available settings:
web
url - URL used for receiving HTTP requests from the Jira instance
amqp
host - RabbitMQ host
port - RabbitMQ port
login - RabbitMQ login
password - RabbitMQ login
virtualhost - RabbitMQ virtual host to use
timeout - How many seconds the service tries to connect to the RabbitMQ server
ssl - Whether to use SSL for AMQP connection
default_queue - Queue to send messages to
custom_queues - Queues to send messages for specific events
You also need to configure Jira webhook to send requests to your jira_rabbitmq_webhook instance. For example if your jira_rabbitmq_webhook instance is launched on the host jrw.test.com and you configured “web”->”url” as “/webhook/” then you should set webhook address in your Jira instance as “http://jrw.test.com/webhook/” (or “https://jrw.test.com/webhook/” if you configured SSL for it).
Running
The jira_rabbitmq_webhook service can be launched with the Gunicorn:
gunicorn "jira_rabbitmq_webhook.application:get_application('path/to/the/jira_rabbitmq_webhook.json')" --worker-class aiohttp.GunicornWebWorker
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file jira_rabbitmq_webhook-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: jira_rabbitmq_webhook-0.1.3-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4173cb74c7774e184ea3f10302268d45ee41d8c42c14a0189382b60f6a5ae951 |
|
MD5 | 7c95bbaed6205ac5be427a14c9a1b196 |
|
BLAKE2b-256 | e8083d0e5394c3e7ff33a2ab92b5c5a28f1c7583fc62729acada2a685bba5126 |