-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
34 lines (33 loc) · 976 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
29
30
31
32
33
34
version: '3'
services:
gz_sim:
# gazebo installation for the robot
image: brean/gz_sim:harmonic-jazzy
build:
context: ./
dockerfile: ./Dockerfile
args:
ROS_DISTRO: jazzy
GZ_VERSION: harmonic
runtime: nvidia
environment:
- PYTHONUNBUFFERED=1 # important to show error messages if a ros service crashes!
- DISPLAY # for UI
- QT_X11_NO_MITSHM=1 #fix some QT bugs
- NVIDIA_VISIBLE_DEVICES=all # for docker-nvidia2
- NVIDIA_DRIVER_CAPABILITIES=all # for docker-nvidia2
- XDG_RUNTIME_DIR
- __NV_PRIME_RENDER_OFFLOAD=1
- __GLX_VENDOR_LIBRARY_NAME=nvidia
- XAUTHORITY=$XAUTHORITY
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:rw # for UI
- /run/user:/run/user:ro # for UI
privileged: true # for UI
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]