|
2 | 2 | // README at: https://github.com/devcontainers/templates/tree/main/src/python |
3 | 3 | { |
4 | 4 | "build": { |
5 | | - "dockerfile": "Dockerfile.dev", |
| 5 | + "dockerfile": "Dockerfile", |
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.testing.pytestArgs": ["tests"], |
20 | | - "python.testing.unittestEnabled": false, |
21 | | - "python.testing.pytestEnabled": true |
| 19 | + "python.terminal.activateEnvInCurrentTerminal": true, |
| 20 | + "python.defaultInterpreterPath": "/opt/venv/bin/python" |
22 | 21 | }, |
23 | 22 | "extensions": [ |
24 | 23 | "ms-python.python", |
|
28 | 27 | "ms-toolsai.jupyter-renderers", |
29 | 28 | "vscode-icons-team.vscode-icons", |
30 | 29 | "wayou.vscode-todo-highlight", |
31 | | - "streetsidesoftware.code-spell-checker", |
32 | | - "eamodio.gitlens", |
33 | | - "visualstudioexptteam.vscodeintellicode" |
| 30 | + "streetsidesoftware.code-spell-checker" |
34 | 31 | ] |
35 | 32 | } |
36 | 33 | }, |
37 | 34 | // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
38 | 35 | // "remoteUser": "root", |
39 | 36 | "updateRemoteUserUID": true, |
40 | | - "workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/mdio-python,type=bind", |
41 | | - "workspaceFolder": "/workspaces/mdio-python", |
42 | 37 | "mounts": [ |
43 | | - // "source=${localWorkspaceFolder}/../DATA/,target=/DATA/,type=bind,consistency=cached" |
| 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 | 42 | ] |
45 | 43 | } |
0 commit comments