devcontainer.json 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {
  2. "name": "Code - OSS",
  3. "build": {
  4. "dockerfile": "Dockerfile"
  5. },
  6. "features": {
  7. "ghcr.io/devcontainers/features/desktop-lite:1": {}
  8. },
  9. "containerEnv": {
  10. "DISPLAY": "" // Allow the Dev Containers extension to set DISPLAY, post-create.sh will add it back in ~/.bashrc and ~/.zshrc if not set.
  11. },
  12. "overrideCommand": false,
  13. "privileged": true,
  14. "mounts": [
  15. {
  16. "source": "vscode-dev",
  17. "target": "/vscode-dev",
  18. "type": "volume"
  19. }
  20. ],
  21. "postCreateCommand": "./.devcontainer/post-create.sh",
  22. "customizations": {
  23. "vscode": {
  24. "settings": {
  25. "resmon.show.battery": false,
  26. "resmon.show.cpufreq": false
  27. },
  28. "extensions": [
  29. "dbaeumer.vscode-eslint",
  30. "EditorConfig.EditorConfig",
  31. "GitHub.vscode-pull-request-github",
  32. "ms-vscode.vscode-github-issue-notebooks",
  33. "ms-vscode.vscode-selfhost-test-provider",
  34. "mutantdino.resourcemonitor"
  35. ]
  36. }
  37. },
  38. "forwardPorts": [6080, 5901],
  39. "portsAttributes": {
  40. "6080": {
  41. "label": "VNC web client (noVNC)",
  42. "onAutoForward": "silent"
  43. },
  44. "5901": {
  45. "label": "VNC TCP port",
  46. "onAutoForward": "silent"
  47. }
  48. },
  49. "hostRequirements": {
  50. "memory": "9gb"
  51. }
  52. }