Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

Amsterdam/GOB-EventProducer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

GOB-EventProducer

Reads GOB events from RabbitMQ event exchange, transforms the events to a generic format and sends the transformed events to a different exchange.

Environment variables

Example environment variables are set in .env.example. Create your own .env based on this example file:

cp .env.example .env

To initialise the configuration:

export $(cat .env | xargs)

Infrastructure

A running GOB infrastructure is required to run this component.

Docker

Requirements

  • docker compose >= 1.25
  • Docker CE >= 18.09

Run

docker compose build
docker compose up &

Tests

docker compose -f src/.jenkins/test/docker-compose.yml build
docker compose -f src/.jenkins/test/docker-compose.yml run --rm test

Local

Requirements

  • Python >= 3.9

Initialisation

Create a virtual environment:

python3 -m venv venv
source venv/bin/activate
pip install -r src/requirements.txt

Or activate the previously created virtual environment:

source venv/bin/activate

Run

Start the service:

cd src
python -m gobeventproducer

Tests

Run the tests:

cd src
sh test.sh

About

No description or website provided.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6