-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdevcontainer.json
More file actions
51 lines (48 loc) · 1.86 KB
/
devcontainer.json
File metadata and controls
51 lines (48 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"name": "python_template",
// Uses the template's prebuilt image by default for fast startup.
// To build locally: pixi run dev-use-local
// To use this repo's own prebuilt image: pixi run dev-use-prebuilt
// "build": {
// "dockerfile": "Dockerfile",
// "context": ".."
// },
"image": "ghcr.io/blooop/python_template/devcontainer:latest",
// Features baked into prebuilt image by CI; uncommented for local builds
// "features": {
// "./claude-code": {}
// },
"initializeCommand": ".devcontainer/claude-code/init-host.sh",
"customizations": {
"vscode": {
"settings": {},
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"jjjermiah.pixi-vscode",
"charliermarsh.ruff",
"tamasfe.even-better-toml",
"mhutchie.git-graph",
"anthropic.claude-code"
]
}
},
"runArgs": [
"--network=host"
],
"containerEnv": {
"CLAUDE_CONFIG_DIR": "/home/vscode/.claude",
"XDG_CONFIG_HOME": "/home/vscode/.config",
"XDG_CACHE_HOME": "/home/vscode/.cache",
"XDG_DATA_HOME": "/home/vscode/.local/share",
"SSH_AUTH_SOCK": "/home/vscode/.ssh/agent.sock"
},
"mounts": [
"source=${localWorkspaceFolderBasename}-pixi,target=${containerWorkspaceFolder}/.pixi,type=volume",
"source=${localEnv:HOME}/.ssh,target=/home/vscode/.ssh,type=bind",
"source=${localEnv:HOME}/.config/gh,target=/home/vscode/.config/gh,type=bind",
"source=${localEnv:HOME}/.claude,target=/home/vscode/.claude,type=bind"
],
"onCreateCommand": "[ -f .pixi/.gitignore ] || cp -a /home/vscode/.pixi-prewarm/. .pixi/ || true",
"postCreateCommand": "git config merge.ours.driver true && pixi install"
}