Skip to content

Commit 475f8ad

Browse files
Miles Burtonclaude
andcommitted
chore: persist Claude authentication in devcontainer
Add Claude config directory mount to avoid re-authentication when spinning up devcontainers. Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent 4da548a commit 475f8ad

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

.devcontainer/devcontainer.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
{
2-
"name": "Arduino Library Development",
3-
"dockerFile": "Dockerfile",
4-
"mounts": [
5-
"source=devcontainer_ssh,target=/home/vscode/.ssh,type=volume",
6-
"source=devcontainer_bash_history,target=/home/vscode/.bash_history,type=volume",
7-
"source=devcontainer_fish_history,target=/home/vscode/.local/share/fish/fish_history,type=volume"
8-
],
9-
"customizations": {
10-
"vscode": {
11-
"extensions": [
12-
"vsciot-vscode.vscode-arduino",
13-
"ms-vscode.cpptools",
14-
"ms-azuretools.vscode-docker",
15-
"yzhang.markdown-all-in-one"
16-
]
17-
}
18-
},
19-
"postCreateCommand": "arduino-cli core install arduino:avr && arduino-cli lib install ArduinoUnit && /usr/local/bin/update-libraries.sh",
20-
"updateContentCommand": "/usr/local/bin/update-libraries.sh",
21-
"remoteUser": "vscode"
22-
}
23-
2+
"name": "Arduino Library Development",
3+
"dockerFile": "Dockerfile",
4+
"mounts": [
5+
"source=devcontainer_ssh,target=/home/vscode/.ssh,type=volume",
6+
"source=devcontainer_bash_history,target=/home/vscode/.bash_history,type=volume",
7+
"source=devcontainer_fish_history,target=/home/vscode/.local/share/fish/fish_history,type=volume",
8+
"source=${localEnv:HOME}/.config/claude,target=/home/node/.config/claude,type=bind"
9+
],
10+
"customizations": {
11+
"vscode": {
12+
"extensions": [
13+
"vsciot-vscode.vscode-arduino",
14+
"ms-vscode.cpptools",
15+
"ms-azuretools.vscode-docker",
16+
"yzhang.markdown-all-in-one"
17+
]
18+
}
19+
},
20+
"postCreateCommand": "arduino-cli core install arduino:avr && arduino-cli lib install ArduinoUnit && /usr/local/bin/update-libraries.sh",
21+
"updateContentCommand": "/usr/local/bin/update-libraries.sh",
22+
"remoteUser": "vscode"
23+
}

0 commit comments

Comments
 (0)