devcontainer.json 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {
  2. "name": "osprey nes",
  3. // Default path to open when attaching to a new container.
  4. "workspaceFolder": "/home/osprey/work",
  5. "image":"nes.osprey.io/nes-build-run",
  6. // Set *default* container specific settings.json values on container create.
  7. "customizations": {
  8. "vscode": {
  9. "settings": {
  10. "terminal.integrated.defaultProfile.linux": "bash",
  11. "cmake.automaticReconfigure": false,
  12. "cmake.configureOnEdit": false
  13. },
  14. "extensions": [
  15. // Put your favourite extensions here
  16. // "mhutchie.git-graph",
  17. // "eamodio.gitlens",
  18. // "ms-vscode.cmake-tools",
  19. // "ms-vscode.cpptools",
  20. // "ms-vscode.cpptools-extension-pack",
  21. ]
  22. }
  23. },
  24. // An array port numbers to forward
  25. "forwardPorts": [],
  26. // "postCreateCommand": "echo 'hello container'",
  27. // Container user VS Code should use when connecting
  28. "remoteUser": "osprey",
  29. // Set environment variables for VS Code and sub-processes
  30. "containerEnv": {
  31. "MY_VARIABLE": "some-value",
  32. // "DISPLAY": ":0"
  33. },
  34. "runArgs": [
  35. "--network=host"
  36. ],
  37. "privileged": true,
  38. "mounts": [
  39. // for audio device
  40. "source=/dev/snd,target=/dev/snd,type=bind,consistency=cached",
  41. // for video
  42. "source=/tmp/.X11-unix,target=/tmp/.X11-unix,type=bind,consistency=cached"
  43. ]
  44. }