-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (35 loc) · 875 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (35 loc) · 875 Bytes
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
services:
app:
build:
context: .
dockerfile: Dockerfile
args:
USER: ${USER}
USER_ID: ${USER_ID}
GROUP_ID: ${GROUP_ID}
command: bash -c "source /opt/ros/jazzy/setup.bash && exec bash"
working_dir: ${PWD}
volumes:
- ./:${PWD}
- /dev:/dev
- /tmp:/tmp
- /var/log/journal:/var/log/journal
- ${XAUTHORITY:-/home/${USER}/.Xauthority}:/home/${USER}/.Xauthority:ro
environment:
# Graphics
- DISPLAY=${DISPLAY}
- QT_X11_NO_MITSHM=1
# ROS 2
- COLCON_HOME=${PWD}/.colcon
#- ROS_DOMAIN_ID=0
# Other
- HISTFILE=${PWD}/.bash_history
devices:
- /dev/dri:/dev/dri # Allow access to GPU devices if needed
network_mode: host
privileged: true
security_opt:
- seccomp:unconfined
ulimits:
core: 0
shm_size: 256m