-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
77 lines (77 loc) · 2.5 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
services:
rtsp:
image: rtsp-ros2
build:
context: ./
dockerfile: docker/Dockerfile.rtsp
command: >
bash -c "source /opt/ros/humble/install/setup.bash && \
source /root/ros2_ws/install/local_setup.bash && \
ros2 launch image2rtsp image2rtsp.launch.py && sleep infinity"
network_mode: host
runtime: nvidia
privileged: true
ipc: host
pid: host
environment:
- NVIDIA_DRIVER_CAPABILITIES=all
- DISPLAY
- QT_X11_NO_MITSHM=1
stdin_open: true # Equivalent to -it for interactive terminal
tty: true # Ensures that a pseudo-terminal is allocated
volumes:
- /dev:/dev
- /tmp:/tmp
- /tmp/.X11-unix:/tmp/.X11-unix
zed_wrapper:
image: zed-wrapper-ros2
build:
context: ./
dockerfile: docker/Dockerfile.zed-dev
command: >
bash -c "source /opt/ros/humble/install/setup.bash && \
source /root/ros2_ws/install/local_setup.bash && \
ros2 launch zed_wrapper zed_camera.launch.py camera_model:='zedx' && sleep infinity"
network_mode: host
runtime: nvidia
privileged: true
ipc: host
pid: host
environment:
- NVIDIA_DRIVER_CAPABILITIES=all
- DISPLAY
- QT_X11_NO_MITSHM=1
stdin_open: true # Equivalent to -it for interactive terminal
tty: true # Ensures that a pseudo-terminal is allocated
volumes:
- /dev:/dev
- /tmp:/tmp
- /tmp/.X11-unix:/tmp/.X11-unix
- /var/nvidia/nvcam/settings/:/var/nvidia/nvcam/settings/
- /etc/systemd/system/zed_x_daemon.service:/etc/systemd/system/zed_x_daemon.service
- ${HOME}/zed_docker_ai/:/usr/local/zed/resources/
autonomy:
image: autonomy-ros2
build:
context: ./
dockerfile: docker/Dockerfile.autonomy
command: >
bash -c "colcon build && \
source /opt/ros/humble/install/setup.bash && \
source /root/ros2_ws/install/local_setup.bash && \
ros2 launch wire_detection wire_detection.launch.xml && sleep infinity"
network_mode: host
runtime: nvidia
privileged: true
ipc: host
pid: host
environment:
- NVIDIA_DRIVER_CAPABILITIES=all
- DISPLAY
- QT_X11_NO_MITSHM=1
stdin_open: true # Equivalent to -it for interactive terminal
tty: true # Ensures that a pseudo-terminal is allocated
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- ./autonomy/:/root/ros2_ws/:rw
- /media/airlab/T7/wire_detection_bags/:/root/storage:rw