Skip to content

Commit a2233af

Browse files
committed
fix mounting via initaliseCommand
1 parent 665462e commit a2233af

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.devcontainer/claude-code/devcontainer-feature.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
"ghcr.io/devcontainers/features/node": {}
2121
},
2222
"mounts": [
23-
"source=${localEnv:HOME}/.claude/CLAUDE.md,target=/home/vscode/.claude/CLAUDE.md,type=bind,ro",
24-
"source=${localEnv:HOME}/.claude/settings.json,target=/home/vscode/.claude/settings.json,type=bind,ro",
23+
"source=${localEnv:HOME}/.claude/CLAUDE.md,target=/home/vscode/.claude/CLAUDE.md,type=bind,readonly",
24+
"source=${localEnv:HOME}/.claude/settings.json,target=/home/vscode/.claude/settings.json,type=bind,readonly",
2525
"source=${localEnv:HOME}/.claude/.credentials.json,target=/home/vscode/.claude/.credentials.json,type=bind",
2626
"source=${localEnv:HOME}/.claude/.claude.json,target=/home/vscode/.claude/.claude.json,type=bind",
27-
"source=${localEnv:HOME}/.claude/agents,target=/home/vscode/.claude/agents,type=bind,ro",
28-
"source=${localEnv:HOME}/.claude/commands,target=/home/vscode/.claude/commands,type=bind,ro",
29-
"source=${localEnv:HOME}/.claude/hooks,target=/home/vscode/.claude/hooks,type=bind,ro"
27+
"source=${localEnv:HOME}/.claude/agents,target=/home/vscode/.claude/agents,type=bind,readonly",
28+
"source=${localEnv:HOME}/.claude/commands,target=/home/vscode/.claude/commands,type=bind,readonly",
29+
"source=${localEnv:HOME}/.claude/hooks,target=/home/vscode/.claude/hooks,type=bind,readonly"
3030
]
3131
}

.devcontainer/devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@
3939
"source=${localEnv:HOME}/.ssh/known_hosts,target=/home/vscode/.ssh/known_hosts,type=bind,ro",
4040
"source=${localEnv:HOME}/.ssh/config,target=/home/vscode/.ssh/config,type=bind,ro"
4141
],
42+
"initializeCommand": "bash -c 'mkdir -p ${HOME}/.claude/agents ${HOME}/.claude/commands ${HOME}/.claude/hooks && for f in CLAUDE.md settings.json .claude.json .credentials.json; do [ ! -f ${HOME}/.claude/$f ] && touch ${HOME}/.claude/$f || true; done'",
4243
"postCreateCommand": "sudo chown vscode .pixi && pixi install"
4344
}

0 commit comments

Comments
 (0)