-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevcontainer.json
More file actions
44 lines (44 loc) · 1.34 KB
/
devcontainer.json
File metadata and controls
44 lines (44 loc) · 1.34 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
{
"name": "ROS 2 Jazzy MoveIt + Gazebo Devcontainer",
"privileged": true,
"remoteUser": "vscode",
"build": {
"dockerfile": "Dockerfile",
"args": {
"USERNAME": "vscode"
}
},
"workspaceFolder": "/home/ws",
"workspaceMount": "source=${localWorkspaceFolder},target=/home/ws,type=bind",
"customizations": {
"vscode": {
"extensions": [
"ms-vscode.cpptools",
"twxs.cmake",
"donjayamanne.python-extension-pack",
"eamodio.gitlens",
"ms-iot.vscode-ros"
]
}
},
"features": {
"ghcr.io/devcontainers/features/git:1": {}
},
"containerEnv": {
"DISPLAY": "unix:0",
"ROS_DOMAIN_ID": "42",
"ROS_AUTOMATIC_DISCOVERY_RANGE": "LOCALHOST"
},
"runArgs": [
// "--gpus=all" // ← Uncomment for GPU rendering (Linux + NVIDIA only)
"--net=host",
"--pid=host",
"--ipc=host",
"-e", "DISPLAY=${env:DISPLAY}"
],
"mounts": [
"source=/tmp/.X11-unix,target=/tmp/.X11-unix,type=bind,consistency=cached",
"source=/dev/dri,target=/dev/dri,type=bind,consistency=cached"
],
"postCreateCommand": "sudo rosdep update && sudo rosdep install --from-paths RobotArmPackages2/src --ignore-src -y"
}