|
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/python |
3 | 1 | { |
4 | | - "build": { |
5 | | - "dockerfile": "Dockerfile.dev", |
6 | | - "context": ".." |
7 | | - }, |
8 | | - // Use 'postCreateCommand' to run commands after the container is created. |
9 | | - "postCreateCommand": { |
10 | | - // "post_create_script": "bash ./.devcontainer/post-install.sh" |
11 | | - }, |
12 | | - // Forward 8787 to enable us to view dask dashboard |
13 | | - "forwardPorts": [8787], |
| 2 | + "image": "mcr.microsoft.com/devcontainers/python:1-3.13-bookworm", |
14 | 3 | // Configure tool-specific properties. |
| 4 | + "features": { |
| 5 | + "ghcr.io/va-h/devcontainers-features/uv:1": { "version": "0.8.15" } |
| 6 | + }, |
15 | 7 | "customizations": { |
16 | | - // Configure properties specific to VS Code. |
17 | 8 | "vscode": { |
18 | 9 | "settings": { |
| 10 | + "python.defaultInterpreterPath": "${containerWorkspaceFolder}/.venv/bin/python", |
19 | 11 | "python.testing.pytestArgs": ["tests"], |
20 | 12 | "python.testing.unittestEnabled": false, |
21 | 13 | "python.testing.pytestEnabled": true |
|
33 | 25 | "visualstudioexptteam.vscodeintellicode", |
34 | 26 | "richie5um2.vscode-sort-json" |
35 | 27 | ] |
| 28 | + }, |
| 29 | + "jetbrains": { |
| 30 | + "plugins": ["com.koxudaxi.pydantic", "com.koxudaxi.ruff"] |
36 | 31 | } |
37 | 32 | }, |
38 | | - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
39 | | - // "remoteUser": "root", |
40 | | - "updateRemoteUserUID": true, |
41 | 33 | "workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/mdio-python,type=bind", |
42 | 34 | "workspaceFolder": "/workspaces/mdio-python", |
43 | | - "mounts": [ |
44 | | - // "source=${localWorkspaceFolder}/../DATA/,target=/DATA/,type=bind,consistency=cached" |
45 | | - ] |
| 35 | + // This installs the MDIO dev environment in the container. Put any customizations there. |
| 36 | + "postCreateCommand": "bash .devcontainer/post-create.sh", |
| 37 | + // Forward 8787 to enable us to view the dask dashboard |
| 38 | + "forwardPorts": [8787] |
| 39 | + // Add any mounts you want to use here. |
| 40 | + //"mounts": [ "source=${localWorkspaceFolder}/../DATA/,target=/DATA/,type=bind,consistency=cached" ] |
46 | 41 | } |
0 commit comments