|
1 | 1 | // For format details, see https://aka.ms/devcontainer.json. For config options, see the |
2 | 2 | // README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-docker-compose |
3 | 3 | { |
4 | | - // Name for the dev container |
5 | | - "name": "langchain", |
6 | | - |
7 | | - // Point to a Docker Compose file |
8 | | - "dockerComposeFile": "./docker-compose.yaml", |
9 | | - |
10 | | - // Required when using Docker Compose. The name of the service to connect to once running |
11 | | - "service": "langchain", |
12 | | - |
13 | | - // The optional 'workspaceFolder' property is the path VS Code should open by default when |
14 | | - // connected. This is typically a file mount in .devcontainer/docker-compose.yml |
15 | | - "workspaceFolder": "/workspaces/langchain", |
16 | | - |
17 | | - // Prevent the container from shutting down |
18 | | - "overrideCommand": true |
19 | | - |
20 | | - // Features to add to the dev container. More info: https://containers.dev/features |
21 | | - // "features": { |
22 | | - // "ghcr.io/devcontainers-contrib/features/poetry:2": {} |
23 | | - // } |
24 | | - |
25 | | - // Use 'forwardPorts' to make a list of ports inside the container available locally. |
26 | | - // "forwardPorts": [], |
27 | | - |
28 | | - // Uncomment the next line to run commands after the container is created. |
29 | | - // "postCreateCommand": "cat /etc/os-release", |
30 | | - |
31 | | - // Configure tool-specific properties. |
32 | | - // "customizations": {}, |
33 | | - |
34 | | - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
35 | | - // "remoteUser": "root" |
| 4 | + // Name for the dev container |
| 5 | + "name": "langchain", |
| 6 | + // Point to a Docker Compose file |
| 7 | + "dockerComposeFile": "./docker-compose.yaml", |
| 8 | + // Required when using Docker Compose. The name of the service to connect to once running |
| 9 | + "service": "langchain", |
| 10 | + // The optional 'workspaceFolder' property is the path VS Code should open by default when |
| 11 | + // connected. This is typically a file mount in .devcontainer/docker-compose.yml |
| 12 | + "workspaceFolder": "/workspaces/langchain", |
| 13 | + "mounts": [ |
| 14 | + "source=langchain-workspaces,target=/workspaces/langchain,type=volume" |
| 15 | + ], |
| 16 | + // Prevent the container from shutting down |
| 17 | + "overrideCommand": true, |
| 18 | + // Features to add to the dev container. More info: https://containers.dev/features |
| 19 | + "features": { |
| 20 | + "ghcr.io/devcontainers/features/git:1": {}, |
| 21 | + "ghcr.io/devcontainers/features/github-cli:1": {} |
| 22 | + }, |
| 23 | + "containerEnv": { |
| 24 | + "UV_LINK_MODE": "copy" |
| 25 | + }, |
| 26 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 27 | + // "forwardPorts": [], |
| 28 | + // Run commands after the container is created |
| 29 | + "postCreateCommand": "uv sync && echo 'LangChain (Python) dev environment ready!'", |
| 30 | + // Configure tool-specific properties. |
| 31 | + "customizations": { |
| 32 | + "vscode": { |
| 33 | + "extensions": [ |
| 34 | + "ms-python.python", |
| 35 | + "ms-python.debugpy", |
| 36 | + "ms-python.mypy-type-checker", |
| 37 | + "ms-python.isort", |
| 38 | + "unifiedjs.vscode-mdx", |
| 39 | + "davidanson.vscode-markdownlint", |
| 40 | + "ms-toolsai.jupyter", |
| 41 | + "GitHub.copilot", |
| 42 | + "GitHub.copilot-chat" |
| 43 | + ], |
| 44 | + "settings": { |
| 45 | + "python.defaultInterpreterPath": ".venv/bin/python", |
| 46 | + "python.formatting.provider": "none", |
| 47 | + "[python]": { |
| 48 | + "editor.formatOnSave": true, |
| 49 | + "editor.codeActionsOnSave": { |
| 50 | + "source.organizeImports": true |
| 51 | + } |
| 52 | + } |
| 53 | + } |
| 54 | + } |
| 55 | + } |
| 56 | + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 57 | + // "remoteUser": "root" |
36 | 58 | } |
0 commit comments