-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdevcontainer.json
33 lines (33 loc) · 1.33 KB
/
devcontainer.json
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
// From https://github.com/fluentrobotics/ros-devcontainer
{
"name": "ros-SET_THIS_TEMPLATE_PLACEHOLDER_VALUE_APPROPRIATELY",
// The following image needs to be built from the ros-devcontainer
// repository.
"image": "fluentrobotics/ros:SET_THIS_TEMPLATE_PLACEHOLDER_VALUE_APPROPRIATELY",
// The following runtime arguments are adapted from the `enter-container.sh`
// script in the ros-devcontainer repository.
"runArgs": [
"--rm",
"--interactive",
"--tty",
"--env=TERM=xterm-256color",
"--network=host",
"--hostname=ros-SET_THIS_TEMPLATE_PLACEHOLDER_VALUE_APPROPRIATELY",
"--ipc=host",
"--volume=/tmp/.X11-unix:/tmp/.X11-unix:ro",
"--volume=/dev/dri:/dev/dri:ro",
"--env=DISPLAY=${localEnv:DISPLAY}",
"--group-add=sudo",
"--user=${localEnv:ROS_DEVCONTAINER_UID}",
"--volume=/etc/group:/etc/group:ro",
"--volume=/etc/passwd:/etc/passwd:ro",
"--volume=/etc/shadow:/etc/shadow:ro",
"--volume=${localEnv:HOME}:${localEnv:HOME}",
// "--runtime=nvidia",
// "--gpus=all",
// "--env=NVIDIA_DRIVER_CAPABILITIES=all",
],
// Since we're mounting the whole user directory, we can work directly in
// the local user workspace path.
"workspaceFolder": "${localWorkspaceFolder}"
}