In Docker you should run a MQTT message broker and a database as well as some glue code (3 containers)
- a container with a standard MQTT server of your choice and
- a database of your choice. Configure both accordingly.
- Write a code that calculates prime numbers and sends them to your server, which uses the MQTT protocol. The glue code picks the numbers from MQTT and writes them into a database of your choice inside containers.
- Develop a way to show your results.
- GlueCode : glueCode.py
- MongoDB : build,sh, run.sh, Dockerfile
- Mosquitto : build,sh, run.sh, Dockerfile, src/mosquitto.conf
- PrimeLauncher : primeLauncher.py, build,sh, run.sh, Dockerfile
Every folders have three files in common.
- Dockerfile
- build.sh
- run.sh
sudo chmod a+x build.sh # If the file is not yet executable
sudo ./build.sh
sudo chmod a+x run.sh # If the file is not yet executable
sudo ./run.sh