|
1 | 1 | { |
2 | 2 | "name": "python_template", |
3 | | - "build": { |
4 | | - "dockerfile": "Dockerfile", |
5 | | - "context": ".." |
6 | | - }, |
| 3 | + |
| 4 | + // Prebuilt image from GHCR (built by .github/workflows/devcontainer.yml) |
| 5 | + // Features (including claude-code) are baked into this image. |
| 6 | + "image": "ghcr.io/blooop/python_template/devcontainer:latest", |
| 7 | + |
| 8 | + // To build locally instead of using the prebuilt image, comment out "image" above |
| 9 | + // and uncomment the "build" and "features" blocks below: |
| 10 | + // "build": { |
| 11 | + // "dockerfile": "Dockerfile", |
| 12 | + // "context": ".." |
| 13 | + // }, |
| 14 | + // "features": { |
| 15 | + // "./claude-code": {} |
| 16 | + // "ghcr.io/devcontainers/features/docker-in-docker:2": {} |
| 17 | + // "ghcr.io/devcontainers/features/common-utils:2": {}, |
| 18 | + // "ghcr.io/anthropics/devcontainer-features/claude-code:1.0": {}, |
| 19 | + // "ghcr.io/jsburckhardt/devcontainer-features/codex:latest": {} |
| 20 | + // }, |
| 21 | + |
7 | 22 | "initializeCommand": ".devcontainer/claude-code/init-host.sh", |
8 | 23 | "customizations": { |
9 | 24 | "vscode": { |
|
14 | 29 | "jjjermiah.pixi-vscode", |
15 | 30 | "charliermarsh.ruff", |
16 | 31 | "tamasfe.even-better-toml", |
17 | | - "mhutchie.git-graph" |
18 | | - ] |
| 32 | + "mhutchie.git-graph", |
| 33 | + "anthropic.claude-code" |
| 34 | + ] |
19 | 35 | } |
20 | | - }, |
21 | | - "features": { |
22 | | - "./claude-code": {} |
23 | | - |
24 | | - // "ghcr.io/devcontainers/features/docker-in-docker:2": {} |
25 | | - // "ghcr.io/devcontainers/features/common-utils:2": {}, |
26 | | - // "ghcr.io/anthropics/devcontainer-features/claude-code:1.0": {}, |
27 | | - // "ghcr.io/jsburckhardt/devcontainer-features/codex:latest": {} |
28 | 36 | }, |
29 | 37 | "runArgs": [ |
30 | 38 | "--network=host" |
|
39 | 47 | "mounts": [ |
40 | 48 | "source=${localWorkspaceFolderBasename}-pixi,target=${containerWorkspaceFolder}/.pixi,type=volume", |
41 | 49 | "source=${localEnv:HOME}/.ssh,target=/home/vscode/.ssh,type=bind", |
42 | | - "source=${localEnv:HOME}/.config/gh,target=/home/vscode/.config/gh,type=bind" |
| 50 | + "source=${localEnv:HOME}/.config/gh,target=/home/vscode/.config/gh,type=bind", |
| 51 | + "source=${localEnv:HOME}/.claude,target=/home/vscode/.claude,type=bind" |
43 | 52 | ], |
44 | 53 | "postCreateCommand": "sudo chown vscode .pixi && pixi install" |
45 | 54 | } |
0 commit comments