-
-
Notifications
You must be signed in to change notification settings - Fork 187
Expand file tree
/
Copy pathdevcontainer.json
More file actions
50 lines (50 loc) · 2 KB
/
devcontainer.json
File metadata and controls
50 lines (50 loc) · 2 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
{
"name": "nanoFramework-ChibiOS-RP",
// This container is for developing Raspberry Pi Pico (RP2040/RP2350) targets using ChibiOS.
// It uses Dockerfile.ChibiOS-RP.SRC which builds from source because there is no pre-built image yet.
// Once a pre-built image is published, change "dockerFile" to "Dockerfile.ChibiOS-RP".
"dockerFile": "Dockerfile.ChibiOS-RP.SRC",
"context": ".",
"runArgs": ["--privileged", "--device=/dev/ttyUSB0:/dev/ttyUSB0"],
"mounts": [
// Bind the Unix socket the Docker daemon listens on by default
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind",
// Keep command history
"source=nano-bashhistory,target=/home/vscode/commandhistory,type=volume",
// Map /dev for USB device access (debug probes, serial ports)
"source=/dev,target=/dev,type=bind"
// OPTIONAL: Mount .azure folder for seamless az cli auth
// ,"source=${env:HOME}${env:USERPROFILE}/.azure,target=/home/vscode/.azure,type=bind"
],
// Set the *default* container specific settings.json values on container create.
"customizations": {
"vscode": {
"settings": {
"cmake.preferredGenerators": [
"Ninja"
],
"cmake.generator": "Ninja",
"cmake.autoRestartBuild" : true,
"cmake.configureSettings": {
"CMAKE_MAKE_PROGRAM":"/usr/bin/ninja"
},
"cmake.configureOnOpen": false
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-vsliveshare.vsliveshare-pack",
"streetsidesoftware.code-spell-checker",
"twxs.cmake",
"ms-vscode.cmake-tools",
"xaver.clang-format"
]
}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// This is needed to allow cloning repositories
"postCreateCommand": "git config --global safe.directory '*'"
// Uncomment to connect as a non-root user. See https: //aka.ms/vscode-remote/containers/non-root.
// ,"remoteUser": "vscode"
}