-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
159 lines (147 loc) · 4.17 KB
/
docker-compose.yml
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
x-labels: &common-labels
com.ros-to-markdown: "true"
com.ros-to-markdown.project: "ros_to_markdown"
com.ros-to-markdown.maintainer: "Rob Royce"
services:
ros1:
build:
context: .
dockerfile: docker/Dockerfile.ros1
volumes:
- .:/workspace:rw
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- ${XAUTHORITY:-$HOME/.Xauthority}:/root/.Xauthority:ro
environment:
- ROS_DISTRO=noetic
- DISPLAY=${DISPLAY}
- QT_X11_NO_MITSHM=1
- NO_AT_BRIDGE=1
network_mode: host
privileged: true
extra_hosts:
- ${DOCKER_EXTRA_HOSTS:-host.docker.internal:host-gateway}
labels:
<<: *common-labels
com.ros-to-markdown.distro: "noetic"
com.ros-to-markdown.type: "base"
working_dir: /workspace
entrypoint: ["/ros1-entrypoint.sh"]
ros1-dev:
extends: ros1
command: launch-ros1-test-env.sh
labels:
<<: *common-labels
com.ros-to-markdown.distro: "noetic"
com.ros-to-markdown.type: "dev"
# ROS2 Humble services
ros2-humble:
build:
context: .
dockerfile: docker/Dockerfile.ros2-humble
volumes:
- .:/workspace:rw
- /tmp/.X11-unix:/tmp/.X11-unix
environment:
- ROS_DISTRO=humble
- DISPLAY=${DISPLAY}
- QT_X11_NO_MITSHM=1
- XAUTHORITY=/tmp/.Xauthority
- DEBIAN_FRONTEND=noninteractive
- INCLUDE_JOYSTICK=0
- ROS_DOMAIN_ID=0
- RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
- RCUTILS_LOGGING_BUFFERED_STREAM=1
- RCUTILS_LOGGING_USE_STDOUT=1
- RCUTILS_COLORIZED_OUTPUT=1
- PYTHONPATH=/workspace/src:/opt/ros/humble/lib/python3.10/site-packages
network_mode: host
privileged: true
labels:
<<: *common-labels
com.ros-to-markdown.distro: "humble"
com.ros-to-markdown.type: "base"
working_dir: /workspace
entrypoint: ["/ros2-entrypoint.sh"]
ros2-humble-dev:
extends: ros2-humble
command: launch-ros2-test-env.sh
# ROS2 Iron services
ros2-iron:
build:
context: .
dockerfile: docker/Dockerfile.ros2-iron
volumes:
- .:/workspace:rw
- /tmp/.X11-unix:/tmp/.X11-unix
environment:
- ROS_DISTRO=iron
- DISPLAY=${DISPLAY}
- QT_X11_NO_MITSHM=1
- XAUTHORITY=/tmp/.Xauthority
- DEBIAN_FRONTEND=noninteractive
- INCLUDE_JOYSTICK=0
- ROS_DOMAIN_ID=0
- RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
- RCUTILS_LOGGING_BUFFERED_STREAM=1
- RCUTILS_LOGGING_USE_STDOUT=1
- RCUTILS_COLORIZED_OUTPUT=1
- PYTHONPATH=/workspace/src:/opt/ros/iron/lib/python3.10/site-packages
network_mode: host
privileged: true
labels:
<<: *common-labels
com.ros-to-markdown.distro: "iron"
com.ros-to-markdown.type: "base"
working_dir: /workspace
entrypoint: ["/ros2-entrypoint.sh"]
ros2-iron-dev:
extends: ros2-iron
command: launch-ros2-test-env.sh
# ROS2 Jazzy services
ros2-jazzy:
build:
context: .
dockerfile: docker/Dockerfile.ros2-jazzy
volumes:
- .:/workspace:rw
- /tmp/.X11-unix:/tmp/.X11-unix
environment:
- ROS_DISTRO=jazzy
- DISPLAY=${DISPLAY}
- QT_X11_NO_MITSHM=1
- XAUTHORITY=/tmp/.Xauthority
- DEBIAN_FRONTEND=noninteractive
- INCLUDE_JOYSTICK=0
- ROS_DOMAIN_ID=0
- RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
- RCUTILS_LOGGING_BUFFERED_STREAM=1
- RCUTILS_LOGGING_USE_STDOUT=1
- RCUTILS_COLORIZED_OUTPUT=1
- PYTHONPATH=/workspace/src:/opt/ros/jazzy/lib/python3.12/site-packages
network_mode: host
privileged: true
labels:
<<: *common-labels
com.ros-to-markdown.distro: "jazzy"
com.ros-to-markdown.type: "base"
working_dir: /workspace
entrypoint: ["/ros2-jazzy-entrypoint.sh"]
ros2-jazzy-dev:
extends: ros2-jazzy
command: launch-ros2-test-env.sh
environment:
- VIRTUAL_ENV=/home/ros/.venv
- PATH=/home/ros/.venv/bin:$PATH
# Test environments
test-ros1:
extends: ros1
command: pytest tests/
test-ros2-humble:
extends: ros2-humble
command: pytest tests/
test-ros2-iron:
extends: ros2-iron
command: pytest tests/
test-ros2-jazzy:
extends: ros2-jazzy
command: pytest tests/