WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 1f487ab

Browse files
committed
feat: update devcontainer configuration and permissions for GPG support
Signed-off-by: Tiger Kaovilai <[email protected]>
1 parent 4a98703 commit 1f487ab

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

.claude/settings.local.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
"Bash(npm outdated)",
1111
"Bash(npm install:*)",
1212
"Bash(npm uninstall:*)",
13-
"Bash(mv:*)"
13+
"Bash(mv:*)",
14+
"Bash(git config:*)",
15+
"Bash(gpg:*)"
1416
],
1517
"defaultMode": "acceptEdits"
1618
}
17-
}
19+
}

.devcontainer/.claude.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"bypassPermissionsModeAccepted": true
3+
}

.devcontainer/.zshrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22

33
# Claude Code alias to skip permission checks
44
alias claude='claude --dangerously-skip-permissions'
5+
6+
# Configure GPG for commit signing
7+
# GPG_TTY must be set to the current terminal for GPG agent to work properly
8+
export GPG_TTY=$(tty)

.devcontainer/devcontainer.json

Lines changed: 3 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-${devcontainerId},target=/home/node/.claude,type=volume",
47+
"source=${localEnv:HOME}${localEnv:USERPROFILE}/.gnupg,target=/home/node/.gnupg,type=bind,consistency=cached"
4748
],
4849
"containerEnv": {
4950
"NODE_OPTIONS": "--max-old-space-size=4096",
@@ -52,6 +53,7 @@
5253
},
5354
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=delegated",
5455
"workspaceFolder": "/workspace",
56+
"postCreateCommand": "test -f /home/node/.claude/.claude.json || cp /workspace/.devcontainer/.claude.json /home/node/.claude/.claude.json",
5557
"postStartCommand": "sudo /usr/local/bin/init-firewall.sh",
5658
"waitFor": "postStartCommand"
5759
}

0 commit comments

Comments
 (0)