Skip to content

Commit f5257ed

Browse files
committed
restore node and add ssh
1 parent 70e9234 commit f5257ed

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.devcontainer/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ USER vscode
1111
WORKDIR /home/vscode
1212

1313
RUN echo 'eval "$(pixi completion -s bash)"' >> /home/vscode/.bashrc
14+
15+
# Create .ssh directory with proper permissions for SSH config mounts
16+
RUN mkdir -p /home/vscode/.ssh && chmod 700 /home/vscode/.ssh

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
"containerEnv": {
1717
"CLAUDE_CONFIG_DIR": "/home/vscode/.claude"
1818
},
19+
"dependsOn": [
20+
"ghcr.io/devcontainers/features/node"
21+
],
1922
"installsAfter": [
2023
"ghcr.io/devcontainers/features/node"
2124
],

.devcontainer/devcontainer.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
}
1919
},
2020
"features": {
21-
"./claude-code": {}
21+
"ghcr.io/devcontainers/features/node":{},
22+
"./claude-code": {},
23+
2224
// "ghcr.io/devcontainers/features/docker-in-docker:2": {}
2325
// "ghcr.io/devcontainers/features/common-utils:2": {},
2426
// "ghcr.io/anthropics/devcontainer-features/claude-code:1.0": {},
@@ -34,7 +36,9 @@
3436
"XDG_DATA_HOME": "/home/vscode/.local/share"
3537
},
3638
"mounts": [
37-
"source=${localWorkspaceFolderBasename}-pixi,target=${containerWorkspaceFolder}/.pixi,type=volume"
39+
"source=${localWorkspaceFolderBasename}-pixi,target=${containerWorkspaceFolder}/.pixi,type=volume",
40+
"source=${localEnv:HOME}/.ssh/known_hosts,target=/home/vscode/.ssh/known_hosts,type=bind,ro",
41+
"source=${localEnv:HOME}/.ssh/config,target=/home/vscode/.ssh/config,type=bind,ro"
3842
],
3943
"postCreateCommand": "sudo chown vscode .pixi && pixi install"
4044
}

0 commit comments

Comments
 (0)