This document provides instructions on how to run the project locally.
Two profiles are provided in the docker-compose.yaml file:
local: for local test and debug purposes. Runs the Kafka stack indockercontainers, but does not build thesimulatorimage, which is expected to be run manually;release: builds also thesimulatorimage, which is then run in the same network as the Kafka stack.
Running the Kafka stack:
docker-compose --profile local up -dGive all permissions to the ./volumes/ folder that has been created:
chmod -R 777 ./volumesthen run all containers that are turned off and then run:
curl "localhost:8083/connectors/" -H 'Content-Type: application/json' -d @./redpanda/connectors/configs/clickhouse.jsonRunning the simulator:
- Create a virtual environment:
python3 -m venv ./simulator/.venv- Activate the virtual environment; for Linux and macOS:
source ./simulator/.venv/bin/activate- Activate the virtual environment; for Windows:
.\simulator\.venv\Scripts\activate- Install the requirements:
pip3 install -r ./simulator/requirements.txt- Run the simulator:
python3 ./simulator/main.pydocker-compose --profile release up -ddocker-compose -f docker-compose-test.yaml --profile test up -d --build