-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
95 lines (92 loc) · 2.88 KB
/
Copy pathdocker-compose.yml
File metadata and controls
95 lines (92 loc) · 2.88 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
services:
# CPU-only version (default)
# Use with: docker compose --profile cpu up
turtlebot3-demo:
profiles: ["cpu"]
build:
context: .
dockerfile: Dockerfile
args:
ROS2_MEDKIT_REF: "${ROS2_MEDKIT_REF:-main}"
container_name: turtlebot3_medkit_demo
environment:
- DISPLAY=${DISPLAY}
- TURTLEBOT3_MODEL=burger
- ROS_DOMAIN_ID=30
- HEADLESS=${HEADLESS:-false}
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:rw
ports:
- "8080:8080"
stdin_open: true
tty: true
command: >
bash -c "mkdir -p /var/lib/ros2_medkit/rosbags &&
source /opt/ros/jazzy/setup.bash &&
source /root/demo_ws/install/setup.bash &&
export TURTLEBOT3_MODEL=burger &&
ros2 launch turtlebot3_medkit_demo demo.launch.py headless:=$${HEADLESS}"
# NVIDIA GPU accelerated version
# Use with: docker compose --profile nvidia up
# Requires: nvidia-container-toolkit
# Install:
# https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html
turtlebot3-demo-nvidia:
profiles: ["nvidia"]
build:
context: .
dockerfile: Dockerfile
args:
ROS2_MEDKIT_REF: "${ROS2_MEDKIT_REF:-main}"
container_name: turtlebot3_medkit_demo_nvidia
environment:
- DISPLAY=${DISPLAY}
- TURTLEBOT3_MODEL=burger
- ROS_DOMAIN_ID=30
- HEADLESS=${HEADLESS:-false}
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:rw
ports:
- "8080:8080"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
stdin_open: true
tty: true
command: >
bash -c "mkdir -p /var/lib/ros2_medkit/rosbags &&
source /opt/ros/jazzy/setup.bash &&
source /root/demo_ws/install/setup.bash &&
export TURTLEBOT3_MODEL=burger &&
ros2 launch turtlebot3_medkit_demo demo.launch.py headless:=$${HEADLESS}"
# For CI testing - headless Gazebo, tests run externally
turtlebot3-demo-ci:
profiles: ["ci"]
build:
context: .
dockerfile: Dockerfile
args:
ROS2_MEDKIT_REF: "${ROS2_MEDKIT_REF:-main}"
container_name: turtlebot3_medkit_demo_ci
environment:
- TURTLEBOT3_MODEL=burger
- ROS_DOMAIN_ID=30
ports:
- "8080:8080"
command: >
bash -c "mkdir -p /var/lib/ros2_medkit/rosbags &&
source /opt/ros/jazzy/setup.bash &&
source /root/demo_ws/install/setup.bash &&
export TURTLEBOT3_MODEL=burger &&
ros2 launch turtlebot3_medkit_demo demo.launch.py headless:=true"
medkit-web-ui:
image: ghcr.io/selfpatch/ros2_medkit_web_ui:latest
container_name: ros2_medkit_web_ui
ports:
- "3000:80"