Nav apraksta

devcontainer.json 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // For format details, see https://aka.ms/devcontainer.json. For config options, see the
  2. // README at: https://github.com/devcontainers/templates/tree/main/src/postgres
  3. {
  4. "name": "iris-web",
  5. "dockerComposeFile": "docker-compose.yml",
  6. "service": "devcontainer",
  7. "workspaceFolder": "/workspaces/iris-web",
  8. // Features to add to the dev container. More info: https://containers.dev/features.
  9. // "features": {},
  10. // forward web app & postgres to host
  11. "forwardPorts": [
  12. 8000,
  13. 5432
  14. ],
  15. // Configure tool-specific properties.
  16. // "customizations": {},
  17. // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
  18. // "remoteUser": "root"
  19. // https://containers.dev/implementors/json_reference/#lifecycle-scripts
  20. // prep our environment before creating & starting container
  21. "initializeCommand": "sh '${localWorkspaceFolder}/.devcontainer/pre-create.sh'",
  22. // setup the dev env after the container was setup
  23. "postCreateCommand": "sh /workspaces/iris-web/.devcontainer/post-create.sh",
  24. "customizations": {
  25. "vscode": {
  26. "extensions": [
  27. // python-related
  28. "ms-python.python",
  29. "ms-python.vscode-pylance",
  30. "KevinRose.vsc-python-indent",
  31. "njpwerner.autodocstring",
  32. // github
  33. "github.vscode-github-actions",
  34. "GitHub.vscode-pull-request-github",
  35. // yaml-related
  36. "redhat.vscode-yaml",
  37. // docker-related
  38. "ms-azuretools.vscode-docker",
  39. // utils
  40. "mtxr.sqltools"
  41. ]
  42. }
  43. }
  44. }