devcontainer.json 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
  2. // https://github.com/microsoft/vscode-dev-containers/tree/v0.209.6/containers/python-3-postgres
  3. // Update the VARIANT arg in docker-compose.yml to pick a Python version
  4. {
  5. "name": "sqlc",
  6. "dockerComposeFile": "docker-compose.yml",
  7. "service": "app",
  8. "workspaceFolder": "/workspace",
  9. "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],
  10. // Set *default* container specific settings.json values on container create.
  11. "settings": {
  12. "sqltools.connections": [{
  13. "name": "Container database",
  14. "driver": "PostgreSQL",
  15. "previewLimit": 50,
  16. "server": "postgresql",
  17. "port": 5432,
  18. "database": "dinotest",
  19. "username": "postgres",
  20. "password": "mysecretpassword"
  21. }],
  22. "go.toolsManagement.checkForUpdates": "local",
  23. "go.useLanguageServer": true,
  24. "go.gopath": "/go",
  25. "go.goroot": "/usr/local/go"
  26. },
  27. // Add the IDs of extensions you want installed when the container is created.
  28. "extensions": [
  29. "golang.Go",
  30. "mtxr.sqltools",
  31. "mtxr.sqltools-driver-pg",
  32. "mtxr.sqltools-driver-mysql"
  33. ],
  34. // Use 'forwardPorts' to make a list of ports inside the container available locally.
  35. // "forwardPorts": [5000, 5432],
  36. // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
  37. "remoteUser": "vscode"
  38. }