Modified docker container for running locally
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ FROM ros:jazzy-perception
|
|||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
# ---------- System dependencies ----------
|
# ---------- System dependencies ----------
|
||||||
RUN apt-get update && apt-get upgrade && apt-get install -y \
|
RUN apt-get update && apt-get upgrade -yq && apt-get install -yq \
|
||||||
python3-colcon-common-extensions \
|
python3-colcon-common-extensions \
|
||||||
python3-rosdep \
|
python3-rosdep \
|
||||||
meson cmake \
|
meson cmake \
|
||||||
|
|||||||
@@ -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"]
|
||||||
+5
-5
@@ -1,11 +1,11 @@
|
|||||||
services:
|
services:
|
||||||
toid:
|
toid:
|
||||||
image: localhost:5000/toid
|
image: toid
|
||||||
build: .
|
build: .
|
||||||
container_name: toid
|
container_name: toid
|
||||||
|
|
||||||
privileged: true
|
|
||||||
network_mode: host
|
network_mode: host
|
||||||
|
ipc: host
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/ros_ws
|
- ./:/ros_ws
|
||||||
@@ -19,14 +19,14 @@ services:
|
|||||||
- base
|
- base
|
||||||
|
|
||||||
toid_forever:
|
toid_forever:
|
||||||
image: localhost:5000/toid
|
image: toid
|
||||||
build: .
|
build: .
|
||||||
container_name: toid
|
container_name: toid
|
||||||
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
privileged: true
|
|
||||||
network_mode: host
|
network_mode: host
|
||||||
|
ipc: host
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/ros_ws
|
- ./:/ros_ws
|
||||||
@@ -34,4 +34,4 @@ services:
|
|||||||
- /sys/:/sys/
|
- /sys/:/sys/
|
||||||
- /run/udev/:/run/udev/
|
- /run/udev/:/run/udev/
|
||||||
|
|
||||||
entrypoint: ["bash", "-c", "source install/setup.bash && ros2 launch toid_navigation main.py use_lidar:=False use_mock:=False"]
|
entrypoint: ["bash", "-c", "source /opt/ros/jazzy/setup.bash && colcon build && source install/setup.bash && ros2 launch toid_navigation main.py use_lidar:=False use_mock:=True"]
|
||||||
|
|||||||
Reference in New Issue
Block a user