Skip to content

Commit 4c33db7

Browse files
authored
Merge pull request #82 from blooop/feature/update_devcontainer
Feature/update devcontainer
2 parents 752783a + a5bc31a commit 4c33db7

File tree

3 files changed

+188
-186
lines changed

3 files changed

+188
-186
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM mcr.microsoft.com/devcontainers/base:jammy
22

3-
ARG PIXI_VERSION=v0.32.1
3+
ARG PIXI_VERSION=v0.41.4
44

55
RUN curl -L -o /usr/local/bin/pixi -fsSL --compressed "https://github.com/prefix-dev/pixi/releases/download/${PIXI_VERSION}/pixi-$(uname -m)-unknown-linux-musl" \
66
&& chmod +x /usr/local/bin/pixi \

.devcontainer/devcontainer.json

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,31 @@
11
{
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"
3231
}

0 commit comments

Comments
 (0)