-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathdevcontainer.json
53 lines (53 loc) · 1.56 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// See https://aka.ms/vscode-remote/devcontainer.json for format details.
{
"name": "ros2",
"dockerFile": "Dockerfile",
"build": {
"args": {
"ROS_VERSION": "humble",
"WORKSPACE": "${containerWorkspaceFolder}"
}
},
"remoteUser": "user", // Container user
"runArgs": [
"--device=/dev/dri", // For AMD devices (not tested)
"--volume=/tmp/.X11-unix:/tmp/.X11-unix", // Required for graphics
"--memory=16g", // Memory limit
"--ulimit=rtprio=99", // The maximum realtime priority allowed for the container
"--ulimit=memlock=-1", // No maximum locked-in-memory address space
],
"capAdd": [
"SYS_NICE",
],
"workspaceFolder": "/code",
"workspaceMount": "source=${localWorkspaceFolder},target=/code,type=bind",
"forwardPorts": [
3100
],
"overrideCommand": false,
"containerEnv": {
"DISPLAY": "${localEnv:DISPLAY}",
"QT_X11_NO_MITSHM": "1" // Required for QT apps like RViz, otherwise they may freeze
},
"init": true, // Use init process that respects signal handlers
"customizations": {
"vscode": {
"settings": {
"telemetry.telemetryLevel": "off",
"telemetry.enableTelemetry": false,
"editor.formatOnSave": true,
"clang-format.executable": "clang-format-14",
"clang-format.language.cpp.style": "file",
"extensions.ignoreRecommendations": true
},
"extensions": [
"ms-python.python",
"ms-iot.vscode-ros",
"ms-vscode.cpptools",
"redhat.vscode-yaml",
"twxs.cmake",
"notskm.clang-tidy",
]
}
}
}