-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
28 lines (28 loc) · 1.06 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
services:
iiwa_ros2_ws:
build:
context: ./docker
dockerfile: Dockerfile
args:
MAKEFLAGS: -j4
PARALLELWORKERS: 4
container_name: iiwa_ros2_container
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all
# to transport X11 application window
- DISPLAY=$DISPLAY
- QT_X11_NO_MITSHM=1
volumes:
# for USB devices
- /dev:/dev
# to tansport X11 application (require xhost local:)
- /tmp/.X11-unix:/tmp/.X11-unix:rw
# shared dirs
- ./yaml:/yaml
- ./ros2_ws/src/lbr_fri_ros2_stack:/root/ros2_ws/src/lbr-stack/src/lbr_fri_ros2_stack
privileged: true
tty: true
network_mode: host
command: bash -c "source /opt/ros/humble/setup.bash && cd /root/ros2_ws && colcon build --executor parallel --symlink-install --mixin release && source /root/ros2_ws/install/setup.bash && bash"