A Python web application that controls Autonomous mobile robots in warehouses
309
Install Docker on your host machine:
sudo apt-get update
sudo apt install docker.io docker-compose
To run Docker without sudo:
sudo groupadd docker
sudo usermod -aG docker $(whoami)
newgrp docker
docker run hello-world
The app requires a local Mosquitto MQTT broker running on the host:
sudo apt install mosquitto mosquitto-clients
sudo systemctl enable mosquitto
sudo systemctl start mosquitto
Edit (or create) the Mosquitto configuration file:
sudo nano /etc/mosquitto/conf.d/anonymous.conf
add this into .conf
listener 1883
allow_anonymous true
Pull the latest image from Docker Hub:
docker pull omarbarakota/grad_project:latest
Run the container and connect it to the host network so it can access Mosquitto:
docker run -d --network host --name omarbarakota/grad_project omarbarakota/grad_project:latest
http://<your-host-ip>:8000To open a shell in the running container:
docker exec -it omarbarakota/grad_project /bin/bash
If you make changes inside the container and want to save them:
docker commit omarbarakota/grad_project omarbarakota/grad_project:customtagname
admin123Start Mosquitto on the host:
sudo systemctl start mosquitto
Run the app container:
docker run -p 8000:8000 -e MQTT_BROKER=http://<your-broker-or-host-ip>: omarbarakota/grad_project:latest
Access the web interface:
Open http://<your-host-ip>:8000 in your browser.
Login and control your robot!
Content type
Image
Digest
sha256:0301ba28a…
Size
66.2 MB
Last updated
3 months ago
docker pull omarbarakota/grad_project:v0.1.1