-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
28 lines (28 loc) · 975 Bytes
/
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
services:
wros2_humble_ws:
build:
context: "docker"
dockerfile: "Dockerfile"
container_name: wros2_humble_container
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all
- DISPLAY=$DISPLAY
- QT_X11_NO_MITSHM=1
- ROS_HOSTNAME=localhost
volumes:
- /dev:/dev
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- ./ros2_ws/humble/src/wros2_tutorials:/ros2_ws/src/wros2_tutorials
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
privileged: true
tty: true
network_mode: host
command: bash -c "source /opt/ros/humble/setup.bash && colcon build --symlink-install --executor sequential && bash"