Skip to content

Commit

Permalink
devcontainer: Modernize devcontainer, bump version
Browse files Browse the repository at this point in the history
- bump base image versions to 97 to match CI
- convert some of the runCmd docker options into dedicated properties

Signed-off-by: Maciej Grela <m.grela@samsung.com>
  • Loading branch information
enkiusz committed Jan 21, 2025
1 parent 545b49c commit 8a80242
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
{
"name": "CHIP Ubuntu Development Environment",
"runArgs": [
"--cap-add=SYS_PTRACE",
"--security-opt",
"seccomp=unconfined",
"--network=host",
"--privileged",
"-v",
"/dev/bus/usb:/dev/bus/usb:ro",
"--device-cgroup-rule=a 189:* rmw",
"--add-host=host.docker.internal:host-gateway"
],
"privileged": true,
"capAdd": ["SYS_PTRACE"],
"securityOpt": ["seccomp=unconfined"],
"mounts": [
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
{
"source": "/var/run/docker.sock",
"target": "/var/run/docker.sock",
"type": "bind"
},
{
"source": "/dev/bus/usb",
"target": "/dev/bus/usb",
"type": "bind"
}
],
"initializeCommand": "bash .devcontainer/build.sh --tag matter-dev-environment:local --version 74",
"initializeCommand": "bash .devcontainer/build.sh --tag matter-dev-environment:local --version 97",
"image": "matter-dev-environment:local",
"remoteUser": "vscode",
"containerEnv": {
Expand Down

0 comments on commit 8a80242

Please sign in to comment.