forked from infotiv-research/SIMLAN
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
43 lines (41 loc) · 1.04 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
43 lines (41 loc) · 1.04 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
services:
factory_simulation: &research-base
container_name: factory_simulation
shm_size: '1gb'
build:
context: .
dockerfile: .devcontainer/Dockerfile
volumes:
- /etc/localtime:/etc/localtime:ro
# - ${XAUTHORITY}:/tmp/.Xauthority
- /tmp/.docker.xauth:/tmp/.docker.xauth:rw
- /tmp/.X11-unix:/tmp/.X11-unix
- ./:/home/ros/src
privileged: true
tty: true
environment:
DISPLAY: ${DISPLAY}
OS: ${OS}
XAUTHORITY: /tmp/.docker.xauth
ROS_DOMAIN_ID: 39
SDL_VIDEODRIVER: x11
devices:
- /dev/tty*:/dev/tty*
- /dev:/dev
device_cgroup_rules:
- 'c *:* rmw'
network_mode: host
command: tail -f /dev/null
restart: always
runtime: nvidia
factory_simulation_nvidia:
<<: *research-base
container_name: factory_simulation_nvidia
runtime: nvidia
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: "all"
capabilities: [compute,utility,graphics,display]