|
| 1 | +{ |
| 2 | + "name": "Postgres Agentic Shop", |
| 3 | + "dockerComposeFile": "docker-compose.yml", |
| 4 | + "service": "agentic-shop", |
| 5 | + "workspaceMount": "source=${localWorkspaceFolder},target=/postgres-agentic-shop,type=bind,consistency=cached", |
| 6 | + "workspaceFolder": "/postgres-agentic-shop", |
| 7 | + "features": { |
| 8 | + "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}, |
| 9 | + "ghcr.io/devcontainers/features/node:1": { |
| 10 | + "version": "22.14" |
| 11 | + }, |
| 12 | + "ghcr.io/devcontainers/features/azure-cli:1": { |
| 13 | + "installBicep": "true", |
| 14 | + "extensions": "rdbms-connect" |
| 15 | + }, |
| 16 | + "ghcr.io/azure/azure-dev/azd:latest": {}, |
| 17 | + "ghcr.io/rchaganti/vsc-devcontainer-features/azurebicep:1": {}, |
| 18 | + "ghcr.io/devcontainers/features/git:1": {}, |
| 19 | + "ghcr.io/devcontainers/features/github-cli:1": {}, |
| 20 | + "ghcr.io/robbert229/devcontainer-features/postgresql-client:1": {}, |
| 21 | + "ghcr.io/devcontainers/features/powershell:1": {} |
| 22 | + }, |
| 23 | + "remoteEnv": { |
| 24 | + // We add the .venv to the beginning of the path env in the Dockerfile |
| 25 | + // so that we use the proper python, however vscode rewrites/overwrites |
| 26 | + // the PATH in the image and puts /usr/local/bin in front of our .venv |
| 27 | + // path. This fixes that issue. |
| 28 | + "PATH": "${containerEnv:PATH}", |
| 29 | + // Add src folder to PYTHONPATH so that we can import modules that |
| 30 | + // are in the source dir |
| 31 | + "PYTHONPATH": "/postgres-agentic-shop/backend/:$PATH" |
| 32 | + // disable SSL verification for Azure CLI if working in CodeSpaces |
| 33 | + // "AZURE_CLI_DISABLE_CONNECTION_VERIFICATION": "1" |
| 34 | + }, |
| 35 | + "mounts": [ |
| 36 | + // Mounts the ssh details from the host machine - this allows the container to connect to ssh hosts |
| 37 | + "type=bind,source=${localEnv:HOME}${localEnv:USERPROFILE}/.ssh,target=/home/vscode/.ssh", |
| 38 | + // Mount docker socket for docker builds |
| 39 | + "type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock", |
| 40 | + // Mount bash history |
| 41 | + "type=bind,source=${localEnv:HOME}${localEnv:USERPROFILE}/.bash_history,target=/home/vscode/.bash_history" |
| 42 | + ], |
| 43 | + "runArgs": [ |
| 44 | + "--network=agentic-net" |
| 45 | + ], |
| 46 | + "forwardPorts": [ |
| 47 | + 8000, |
| 48 | + 5173 |
| 49 | + ], |
| 50 | + "remoteUser": "vscode", |
| 51 | + "customizations": { |
| 52 | + "vscode": { |
| 53 | + "settings": { |
| 54 | + "python.defaultInterpreterPath": "${workspaceFolder}/backend/.venv/bin/python", |
| 55 | + "python.languageServer": "Pylance", |
| 56 | + "files.watcherExclude": { |
| 57 | + "**/.git/objects/**": true, |
| 58 | + "**/.git/subtree-cache/**": true, |
| 59 | + "**/node_modules/*/**": true, |
| 60 | + "**/.python_packages/*/**": true |
| 61 | + } |
| 62 | + }, |
| 63 | + "extensions": [ |
| 64 | + "ms-python.python", |
| 65 | + "ms-python.debugpy", |
| 66 | + "ms-python.pylint", |
| 67 | + "ms-python.black-formatter", |
| 68 | + "ms-python.vscode-pylance", |
| 69 | + "ms-azuretools.vscode-docker", |
| 70 | + "ms-azuretools.azure-dev", |
| 71 | + "GitHub.copilot", |
| 72 | + "GitHub.copilot-chat", |
| 73 | + "donjayamanne.githistory", |
| 74 | + "codezombiech.gitignore", |
| 75 | + "ms-azuretools.vscode-bicep", |
| 76 | + "ziyasal.vscode-open-in-github", |
| 77 | + "ms-ossdata.vscode-pgsql" |
| 78 | + ] |
| 79 | + } |
| 80 | + }, |
| 81 | + "postCreateCommand": "bash ./.devcontainer/entrypoint.sh", |
| 82 | + "postStopCommand": "docker stop arize-phoenix || true" |
| 83 | +} |
0 commit comments