-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-compose.base.yml
More file actions
79 lines (67 loc) · 2.08 KB
/
docker-compose.base.yml
File metadata and controls
79 lines (67 loc) · 2.08 KB
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
# ==================== ANCHORS/TEMPLATES ====================
x-system-template: &system-template
# runtime: nvidia
working_dir: /workspace
network_mode: host
ipc: host
restart: "no"
stdin_open: true
tty: true
environment:
- DISPLAY=${DISPLAY:-:0}
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all
- QT_X11_NO_MITSHM=1
- DISABLE_ROS1_EOL_WARNINGS=1
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:rw
x-x11-volume: &x11-volume
/tmp/.X11-unix:/tmp/.X11-unix:rw
x-robot-bringup-volume: &robot-bringup-volume
./workspaces/ros1_launcher:/workspace/src/ros1_launcher:rw
x-recorded-data-volume: &recorded-data-volume
./data:/data:rw
x-catkin-build-template: &catkin-build-template
<<: *system-template
command: catkin build -DCMAKE_BUILD_TYPE=Release
profiles: ["build"]
x-colcon-build-template: &colcon-build-template
<<: *system-template
command: colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release #TODO number of cores, check config file in magpie for colcon defaults
profiles: ["build"]
x-ros1-wait-for-roscore: &ros1-wait-for-roscore
depends_on:
ros1_launch_roscore:
condition: service_healthy
x-ros1-launch-template: &ros1-launch-template
<<: [*system-template, *ros1-wait-for-roscore]
profiles: ["launch"]
x-ros2-launch-template: &ros2-launch-template
<<: [*system-template]
profiles: ["launch"]
services:
.ros1-launch-base: # Leading dot makes it a template (won't start)
<<: *ros1-launch-template
image: placeholder # Will be overridden
profiles: ["template"]
volumes:
- *robot-bringup-volume
- *x11-volume
.ros2-launch-base:
<<: *ros2-launch-template
image: placeholder
profiles: ["template"]
volumes:
- *robot-bringup-volume
- *x11-volume
ros1_launch_roscore:
<<: [*system-template]
image: unified_autonomy:ros1_base
profiles: ["launch"]
command: roscore
healthcheck:
test: ["CMD-SHELL", "bash", "-c", "source /opt/ros/noetic/setup.bash && rostopic list || exit 1"]
interval: 2s
timeout: 2s
retries: 5
start_period: 3s