- Docker Compose Desktop
- Terminal (or Visual Studio Code with Docker Plugin)
- Clone this project
- Start Docker Engine (running Docker Desktop will start the engine)
- Go to directory
cd .\iot-processor\docker-compose
- Start infrastructure (-d detached mode)
docker-compose up -d --build
- Open backend logs in a new terminal
docker compose logs backend --follow
- Open testdata generator logs in a new terminal
docker compose logs testdata-generator --follow
- Start testdata generator (Port 5000) with the follow POST Request:
curl
--request POST \
--url http://localhost:5000/start \
--header 'Content-Type: application/json' \
--data '{
"sleep_time": 0.01,
"sensor_range": 10,
"min_value": 35,
"max_value": 50
}'
- Stop testdata generator with:
curl
--request POST \
--url http://localhost:5000/stop \
--header 'Content-Type: application/json'
- remove all images & containers
docker rm $(docker ps -a -q)
param | definition |
---|---|
0.01 | intervall generated data in seconds |
10 | unique count of sensors |
35 | min value of random generated values |
50 | max value of random generated values |
Caution with use intervals higher then 0.00001 and count of sensors higher then 1000.