|
1 | 1 | { |
2 | | - "name": "python_template", |
3 | | - "build": { |
4 | | - "dockerfile": "Dockerfile", |
5 | | - "context": ".." |
6 | | - }, |
7 | | - "customizations": { |
8 | | - "vscode": { |
9 | | - "extensions": [ |
10 | | - "ms-python.python", |
11 | | - "ms-python.vscode-pylance", |
12 | | - "ms-python.pylint", |
13 | | - "njpwerner.autodocstring", |
14 | | - "charliermarsh.ruff", |
15 | | - "mhutchie.git-graph", |
16 | | - "eamodio.gitlens", |
17 | | - "tamasfe.even-better-toml", |
18 | | - "Codium.codium", |
19 | | - "ms-azuretools.vscode-docker", |
20 | | - "ryanluker.vscode-coverage-gutters" |
21 | | - ] |
22 | | - } |
23 | | - }, |
24 | | - //docker in docker is included in the pixi devcontainer example, but disabling for the moment due to security issues |
25 | | - // "features": { |
26 | | - // "ghcr.io/devcontainers/features/docker-in-docker:2": {} |
27 | | - // }, |
28 | | - "mounts": [ |
29 | | - "source=${localWorkspaceFolderBasename}-pixi,target=${containerWorkspaceFolder}/.pixi,type=volume" |
30 | | - ], |
31 | | - "postCreateCommand": "sudo chown vscode .pixi && pixi install" |
| 2 | + "name": "python_template", |
| 3 | + "build": { |
| 4 | + "dockerfile": "Dockerfile", |
| 5 | + "context": "..", |
| 6 | + "args": { |
| 7 | + "PIXI_VERSION": "v0.41.4" |
| 8 | + } |
| 9 | + }, |
| 10 | + "customizations": { |
| 11 | + "vscode": { |
| 12 | + "settings": {}, |
| 13 | + "extensions": [ |
| 14 | + "jjjermiah.pixi-vscode", |
| 15 | + "ms-python.python", |
| 16 | + "charliermarsh.ruff", |
| 17 | + "tamasfe.even-better-toml", |
| 18 | + "mhutchie.git-graph", |
| 19 | + "GitHub.copilot", |
| 20 | + "ryanluker.vscode-coverage-gutters" |
| 21 | + ] |
| 22 | + } |
| 23 | + }, |
| 24 | + "features": { |
| 25 | + "ghcr.io/devcontainers/features/common-utils:2": {}, |
| 26 | + }, |
| 27 | + "mounts": [ |
| 28 | + "source=${localWorkspaceFolderBasename}-pixi,target=${containerWorkspaceFolder}/.pixi,type=volume" |
| 29 | + ], |
| 30 | + "postCreateCommand": "sudo chown vscode .pixi && pixi install" |
32 | 31 | } |
0 commit comments