Skip to main content

A rocketmq message consumer for Gitlab WebHook messages

Project description

https://badge.fury.io/py/sc-gitlab-msg-consumer.svg PyPI - Python Version

A simple message consumer for Gitlab WebHook messages

This project provides A simple message consumer for Gitlab WebHook messages that were previously sent to a rocketmq server

Installation

It is possible to install the tool with pip:

pip install sc-gitlab-msg-consumer

Configuration

First, make sure /var/opt/sc directory exists, if not create this directory and make sure current user has the right to create files in this directory.

You can copy default.yml to /var/opt/sc/.sc-gitlab-msg-consumer/production.yml to initialize the production configuration.

The default configuration file looks like this:

dev:
  # whether this program is running is development mode
  dev_mode: False

# rocketmq configurations
rocketmq:
  # name server ip
  name_server_ip: "localhost"
  # name server port
  name_server_port: 9876
  # group id
  group_id: "GITLAB_WEBHOOK_MSG_CONSUMER"
  # message topic
  msg_topic: "GITLAB_WEBHOOK"

Running

After installation and configuration, you can simply run this program using:

sh sc-gitlab-msg-consumer

Logs will be saved at /tmp/logs/sc-sys.log

Dependencies

License

The script is released under the MIT License. The MIT License is registered with and approved by the Open Source Initiative [1].

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sc-gitlab-msg-consumer-0.0.2.tar.gz (7.4 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page