devcontainer.json 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {
  2. "name": "CHIP Ubuntu Development Environment",
  3. "runArgs": [
  4. "--cap-add=SYS_PTRACE",
  5. "--security-opt",
  6. "seccomp=unconfined",
  7. "--network=host",
  8. "--privileged",
  9. "-v",
  10. "/dev/bus/usb:/dev/bus/usb:ro",
  11. "--device-cgroup-rule=a 189:* rmw",
  12. "--add-host=host.docker.internal:host-gateway"
  13. ],
  14. "mounts": [
  15. "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
  16. ],
  17. "initializeCommand": ".devcontainer/build.sh --tag matter-dev-environment:local --version 1",
  18. "image": "matter-dev-environment:local",
  19. "remoteUser": "vscode",
  20. "customizations": {
  21. "vscode": {
  22. // Add the IDs of extensions you want installed when the container is created in the array below.
  23. "extensions": [
  24. "mcu-debug.debug-tracker-vscode",
  25. "aaron-bond.better-comments",
  26. "augustocdias.tasks-shell-input",
  27. "christian-kohler.path-intellisense",
  28. "eamodio.gitlens",
  29. "editorconfig.editorconfig",
  30. "esbenp.prettier-vscode",
  31. "foxundermoon.shell-format",
  32. "github.vscode-pull-request-github",
  33. "maelvalais.autoconf",
  34. "marus25.cortex-debug",
  35. "ms-azuretools.vscode-docker",
  36. "ms-vscode.cpptools",
  37. "msedge-dev.gnls",
  38. "redhat.vscode-yaml",
  39. "vadimcn.vscode-lldb",
  40. "xaver.clang-format",
  41. "yuichinukiyama.vscode-preview-server",
  42. "yzhang.markdown-all-in-one"
  43. ],
  44. "settings": {
  45. "terminal.integrated.defaultProfile.linux": "bash",
  46. "terminal.integrated.profiles.linux": {
  47. "bash": {
  48. "path": "/bin/bash",
  49. "args": ["-l"]
  50. }
  51. }
  52. }
  53. }
  54. },
  55. "remoteEnv": {
  56. "GIT_PS1_SHOWDIRTYSTATE": "1",
  57. "GIT_PS1_SHOWSTASHSTATE": "1",
  58. "GIT_PS1_SHOWCOLORHINTS": "true",
  59. "PROMPT_COMMAND": "${localEnv:PROMPT_COMMAND}"
  60. }
  61. }