This repo receives mutation or signal messages from external systems.
This first endpoint will receive HR signal messages. The first (currently implemented) version just echos the incoming request data back to the client.
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)
A running GOB infrastructure is required to run this component.
- docker compose >= 1.25
- Docker CE >= 18.09
docker compose build
docker compose up &
docker compose -f src/.jenkins/test/docker-compose.yml build
docker compose -f src/.jenkins/test/docker-compose.yml run --rm test
- Python >= 3.9
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
Start the service:
cd src
python -m gobmessage
Run the tests:
cd src
sh test.sh