-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathcompose.yml
More file actions
69 lines (67 loc) · 2.06 KB
/
compose.yml
File metadata and controls
69 lines (67 loc) · 2.06 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
services:
# Real To Sim [Master Container]
openreal2sim:
build:
context: ..
dockerfile: docker/real2sim/Dockerfile
image: openreal2sim:dev
# container_name: openreal2sim
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [ gpu ]
environment:
- HOME=/tmp
- USER=dev
- VSCODE_SERVER_DIR=/tmp/.vscode-server
working_dir: /app
volumes:
- /etc/passwd:/etc/passwd:ro
- /etc/group:/etc/group:ro
- ${HOME}:${HOME}
- ../:/app
stdin_open: true
user: "${HOST_UID}:${HOST_GID}"
tty: true
command: bash
isaaclab:
build:
context: ..
dockerfile: docker/isaaclab/Dockerfile
image: isaaclab:dev
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [ gpu ]
working_dir: /app
volumes:
- ../:/app
- /tmp/.X11-unix:/tmp/.X11-unix:rw # forward X11 socket
- ${XAUTHORITY:-$HOME/.Xauthority}:/home/isaac/.Xauthority:ro # X auth cookie
- /dev:/dev # add: expose input/gpu devices if needed
environment:
- DISPLAY=${DISPLAY} # add: pass host DISPLAY
- XAUTHORITY=/home/isaac/.Xauthority # add: where the cookie is mounted in container
- QT_X11_NO_MITSHM=1 # add: avoid MIT-SHM issues for GUI apps
- NVIDIA_VISIBLE_DEVICES=all # add: be explicit
- NVIDIA_DRIVER_CAPABILITIES=all # add: include graphics/display
- OMNI_KIT_DISABLE_EXTS=isaacsim.ros2.bridge
# (Optional Wayland; uncomment if you run Wayland)
# - WAYLAND_DISPLAY=${WAYLAND_DISPLAY}
# - XDG_RUNTIME_DIR=/run/user/${UID}
# - XDG_SESSION_TYPE=wayland
devices:
- /dev/dri:/dev/dri # add: direct rendering device (helps GUI/GL)
# ipc: host # add: larger /dev/shm helps Isaac
shm_size: "16g" # add: extra SHM for stability
stdin_open: true
tty: true
command: bash
runtime: nvidia
network_mode: "host"