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 indocker
containers, but does not build thesimulator
image, which is expected to be run manually;release
: builds also thesimulator
image, which is then run in the same network as the Kafka stack.
Running the Kafka stack:
docker-compose --profile local up -d
Give all permissions to the ./volumes/
folder that has been created:
chmod -R 777 ./volumes
then run all containers that are turned off and then run:
curl "localhost:8083/connectors/" -H 'Content-Type: application/json' -d @./redpanda/connectors/configs/clickhouse.json
Running 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.py
docker-compose --profile release up -d
docker-compose -f docker-compose-test.yaml --profile test up -d --build