forked from mc-rtc/mc-rtc-superbuild
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevcontainer.json
More file actions
48 lines (41 loc) · 1.58 KB
/
devcontainer.json
File metadata and controls
48 lines (41 loc) · 1.58 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
{
"name": "mc-rtc-superbuild-noble-image",
// See .github/devcontainer/ubuntu-22.04/devcontainer.json to see how this image was built
// This image contains:
// - All of mc-rtc-superbuild dependencies
// - A ccache build cache built from the latest sources
// - A cython build cache built from the latest sources
// - All tools required to build the project
// - A sensible default configuration for vscode
"image": "ghcr.io/mc-rtc/mc-rtc-superbuild:noble",
"mounts": [
"type=bind,source=/tmp/.X11-unix,target=/tmp/.X11-unix,consistency=cached",
"source=${localEnv:HOME}${localEnv:USERPROFILE}/docker-ws/mc-rtc-superbuild-noble,target=/home/vscode/workspace,type=bind,consistency=cached"
],
"features":
{
},
// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
]
}
},
"runArgs": [
"--network=host",
"--cap-add=sys_nice" // Grants the container the CAP_SYS_NICE capability, which allows the container to raise process nice values, set real-time scheduling policies, set CPU affinity, and other operations.
"--ulimit core=-1", // allow core dumps
"--privileged" // allow core dumps
// Uncomment for containers requiring use of nvidia GPUs
// You will need to install NVIDIA Container Toolkit first
// "--runtime=nvidia",
// "--gpus=all",
],
"containerEnv": {
"DISPLAY": "${localEnv:DISPLAY}"
},
"remoteUser": "vscode",
"workspaceMount": "source=${localWorkspaceFolder},target=/home/vscode/superbuild,type=bind",
"workspaceFolder": "/home/vscode/superbuild"
}