|
2 | 2 | // README at: https://github.com/devcontainers/templates/tree/main/src/python |
3 | 3 | { |
4 | 4 | "build": { |
5 | | - "dockerfile": "Dockerfile", |
| 5 | + "dockerfile": "Dockerfile.dev", |
6 | 6 | "context": ".." |
7 | 7 | }, |
8 | 8 | // Use 'postCreateCommand' to run commands after the container is created. |
9 | 9 | "postCreateCommand": { |
10 | | - "post_create_script": "bash ./.devcontainer/post-install.sh" |
| 10 | + // "post_create_script": "bash ./.devcontainer/post-install.sh" |
11 | 11 | }, |
12 | 12 | // Forward 8787 to enable us to view dask dashboard |
13 | 13 | "forwardPorts": [8787], |
|
16 | 16 | // Configure properties specific to VS Code. |
17 | 17 | "vscode": { |
18 | 18 | "settings": { |
19 | | - "python.terminal.activateEnvInCurrentTerminal": true, |
20 | | - "python.defaultInterpreterPath": "/opt/venv/bin/python" |
| 19 | + "python.testing.pytestArgs": ["tests"], |
| 20 | + "python.testing.unittestEnabled": false, |
| 21 | + "python.testing.pytestEnabled": true |
21 | 22 | }, |
22 | 23 | "extensions": [ |
23 | 24 | "ms-python.python", |
|
27 | 28 | "ms-toolsai.jupyter-renderers", |
28 | 29 | "vscode-icons-team.vscode-icons", |
29 | 30 | "wayou.vscode-todo-highlight", |
30 | | - "streetsidesoftware.code-spell-checker" |
| 31 | + "streetsidesoftware.code-spell-checker", |
| 32 | + "eamodio.gitlens", |
| 33 | + "visualstudioexptteam.vscodeintellicode", |
| 34 | + "richie5um2.vscode-sort-json" |
31 | 35 | ] |
32 | 36 | } |
33 | 37 | }, |
34 | 38 | // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
35 | 39 | // "remoteUser": "root", |
36 | 40 | "updateRemoteUserUID": true, |
| 41 | + "workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/mdio-python,type=bind", |
| 42 | + "workspaceFolder": "/workspaces/mdio-python", |
37 | 43 | "mounts": [ |
38 | | - // Re-use local Git configuration |
39 | | - "source=${localEnv:HOME}/.gitconfig,target=/home/vscode/.gitconfig_tmp,type=bind,consistency=cached", |
40 | | - "source=${localEnv:HOME}/.gitconfig,target=/root/.gitconfig_tmp,type=bind,consistency=cached", |
41 | | - "source=${localEnv:SCRATCH_DIR}/${localEnv:USER},target=/scratch/,type=bind,consistency=cached" |
| 44 | + // "source=${localWorkspaceFolder}/../DATA/,target=/DATA/,type=bind,consistency=cached" |
42 | 45 | ] |
43 | 46 | } |
0 commit comments