-
Notifications
You must be signed in to change notification settings - Fork 1
/
devcontainer.json
35 lines (32 loc) · 1.05 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
{
"build" : {
"context": ".",
"dockerfile": "./Dockerfile"
},
"customizations": {
"vscode": {
"extensions": [
"marus25.cortex-debug"
]
}
},
"name": "lora-e5-dev-rs",
// Use the OpenOCD fork shipped with STM32Cube by STMicroelectronics.
"mounts": [
"source=/opt/st/stm32cubeide_1.10.1/plugins/com.st.stm32cube.ide.mcu.externaltools.openocd.linux64_2.2.100.202206011703/tools/bin,target=/opt/openocd,type=bind,consistency=cached"
],
"remoteEnv": {
"PATH": "${containerEnv:PATH}:/opt/openocd"
},
"capAdd": ["SYS_PTRACE"],
"securityOpt": ["seccomp=unconfined"],
"remoteUser": "root",
"runArgs": [
// Mounting the entire `/dev` folder is not a good practice.
// A better approach might be to expose a specific host device to the
// container, for example using "--device=/dev/ttyACM0".
"--volume=/dev:/dev",
// Required to access usb devices.
"--device-cgroup-rule=c 189:* rmw"
]
}