Modified docker container for running locally

This commit is contained in:
2026-07-13 22:13:47 +02:00
parent 903b5fc1e9
commit 44fa2f16ab
3 changed files with 43 additions and 6 deletions
+37
View File
@@ -0,0 +1,37 @@
services:
toid:
image: localhost:5000/toid
build: .
container_name: toid
privileged: true
network_mode: host
volumes:
- ./:/ros_ws
- /dev/:/dev/
- /sys/:/sys/
- /run/udev/:/run/udev/
entrypoint: ["sleep","infinity"]
profiles:
- base
toid_forever:
image: localhost:5000/toid
build: .
container_name: toid
restart: unless-stopped
privileged: true
network_mode: host
volumes:
- ./:/ros_ws
- /dev/:/dev/
- /sys/:/sys/
- /run/udev/:/run/udev/
entrypoint: ["bash", "-c", "source install/setup.bash && ros2 launch toid_navigation main.py use_lidar:=False use_mock:=False"]