Skip to content

Commit af5fc38

Browse files
authored
Merge pull request #137 from shugo/feature/persistent-devcontainer-config
Persist Claude Code and gh CLI config across devcontainer rebuilds
2 parents 921e1a5 + cbb72e4 commit af5fc38

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.devcontainer/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ ENV TZ="$TZ"
55

66
ARG CLAUDE_CODE_VERSION=latest
77

8+
# Install GitHub CLI from official repository
9+
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \
10+
| dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
11+
&& chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
12+
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" \
13+
> /etc/apt/sources.list.d/github-cli.list
14+
815
# Install basic development tools and iptables/ipset
916
RUN apt-get update && apt-get install -y --no-install-recommends \
1017
less \

.devcontainer/devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
"remoteUser": "node",
4444
"mounts": [
4545
"source=claude-code-bashhistory-${devcontainerId},target=/commandhistory,type=volume",
46-
"source=claude-code-config-${devcontainerId},target=/home/node/.claude,type=volume"
46+
"source=claude-code-config,target=/home/node/.claude,type=volume",
47+
"source=claude-code-gh-config,target=/home/node/.config/gh,type=volume"
4748
],
4849
"containerEnv": {
4950
"NODE_OPTIONS": "--max-old-space-size=4096",

0 commit comments

Comments
 (0)