-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (69 loc) 路 2.55 KB
/
Copy pathdocker-compose.yml
File metadata and controls
69 lines (69 loc) 路 2.55 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:
vsgraphs_ros2:
image: vsgraphs_ros2
build:
context: .
dockerfile: Jazzy.Dockerfile
ssh:
- default
args:
USERNAME: $USERNAME
USER_UID: 1000
USER_GID: 1000
container_name: vsgraphs_ros2
environment:
DISPLAY: $DISPLAY
XAUTHORITY: $XAUTHORITY
SSH_AUTH_SOCK: $SSH_AUTH_SOCK
NVIDIA_VISIBLE_DEVICES: all
NVIDIA_DRIVER_CAPABILITIES: all
TERM: $TERM
SHELL: $SHELL
runtime: nvidia
privileged: true
restart: always
devices:
- /dev/bus/usb:/dev/bus/usb
volumes:
# Display
- /tmp/.X11-unix:/tmp/.X11-unix:rw
# - ~/.Xauthority:/home/user/.Xauthority:rw
- $XAUTHORITY:$XAUTHORITY:rw
# SSH
- $SSH_AUTH_SOCK:$SSH_AUTH_SOCK
# TMUX
- ~/.tmux:/home/$USERNAME/.tmux:ro
- ~/.tmux.conf:/home/$USERNAME/.tmux.conf:ro
# Git
- ~/.gitconfig:/home/$USERNAME/.gitconfig_local
# Dev
- /dev:/dev:rw
# persistent bash history and config from local to container
# - ~/.bash_history:/root/.bash_history
# - container_home_cache:/root/.cache # Optional: persist cache
# Working Directory - vS-Graphs (** MODIFY **)
- "/home/$USERNAME/[PATH]/src/visual_sgraphs:/home/$USERNAME/workspace/src/visual_sgraphs:rw"
# Working Directory - Scene Segmenter (** MODIFY **)
- "/home/$USERNAME/[PATH]/src/scene_segment_ros:/home/$USERNAME/workspace/src/scene_segment_ros:rw"
# Working Directory - Situational Graphs Messages (** MODIFY **)
- "/home/$USERNAME/[PATH]/src/situational_graphs_msgs:/home/$USERNAME/workspace/src/situational_graphs_msgs:rw"
# Data Directory (** MODIFY **)
- "/media/$USERNAME/AT_SSD/Datasets:/home/$USERNAME/datasets:rw"
network_mode: "host"
command:
tail -f /dev/null
# Used to set correct U/G(ID) for shared folder
depends_on:
- volume-init
volume-init:
image: busybox
command: ["chown", "-R", "1000:1000", "/workspace/src/visual_sgraphs"]
volumes:
# Working Directory - vS-Graphs (** MODIFY **)
- "/home/$USERNAME/[PATH]/src/visual_sgraphs:/home/$USERNAME/workspace/src/visual_sgraphs:rw"
# Working Directory - Scene Segmenter (** MODIFY **)
- "/home/$USERNAME/[PATH]/src/scene_segment_ros:/home/$USERNAME/workspace/src/scene_segment_ros:rw"
# Working Directory - Situational Graphs Messages (** MODIFY **)
- "/home/$USERNAME/[PATH]/src/situational_graphs_msgs:/home/$USERNAME/workspace/src/situational_graphs_msgs:rw"
entrypoint: ""
restart: "no"