|
8 | 8 | "dockerComposeFile": ["../compose.yaml"], |
9 | 9 | "mounts": [ |
10 | 10 | "source=${localEnv:HOME}/.ssh,target=/home/node/.ssh,type=bind,consistency=cached", |
11 | | - "source=${localEnv:HOME}/.claude,target=/home/node/.claude,type=bind,consistency=cached" |
| 11 | + "source=${localEnv:HOME}/.claude,target=/home/node/.claude,type=bind,consistency=cached", |
| 12 | + "source=${localEnv:HOME}/.gitconfig,target=/home/node/.gitconfig,type=bind,consistency=cached" |
12 | 13 | ], |
13 | 14 | // Features to add to the dev container. More info: https://containers.dev/features. |
14 | | - // "features": {}, |
| 15 | + "features": { |
| 16 | + "ghcr.io/devcontainers/features/github-cli:1": {} |
| 17 | + }, |
15 | 18 | // |
16 | 19 | // Use 'forwardPorts' to make a list of ports inside the container available locally. |
17 | 20 | "forwardPorts": [ |
|
22 | 25 | // "shutdownAction": "none", |
23 | 26 | // |
24 | 27 | // Use 'initializeCommand' to run commands before the container is created. |
25 | | - "initializeCommand": "mkdir -p ~/.claude", |
| 28 | + "initializeCommand": "mkdir -p ~/.claude && touch ~/.gitconfig", |
26 | 29 | // |
27 | 30 | // Use 'postCreateCommand' to run commands after the container is created. |
28 | | - "postCreateCommand": "npm install -g @anthropic-ai/claude-code && (curl -fsSL https://cli.coderabbit.ai/install.sh | sh || echo 'CodeRabbit CLI installation failed, continuing...') && pnpm install", |
| 31 | + "postCreateCommand": "bash .devcontainer/setup-devcontainer.sh", |
29 | 32 | // |
30 | 33 | // Configure tool-specific properties. |
31 | 34 | "customizations": { |
|
0 commit comments