-
Notifications
You must be signed in to change notification settings - Fork 15
feat(devcontainer): refresh dev image and auto-update Claude Code #154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dpage
wants to merge
4
commits into
main
Choose a base branch
from
feat/devcontainer-claude-code-auto-update
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+47
−12
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
79085b1
feat(devcontainer): refresh dev image and auto-update Claude Code
dpage fdfb9ea
fix(devcontainer): address CodeRabbit and Codacy review feedback
dpage fbb6092
fix(devcontainer): drop ineffective GH_TOKEN plumbing
dpage 6d95660
fix(devcontainer): make claude alias append idempotent
dpage File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,49 @@ | ||
| // For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
| // README at: https://github.com/devcontainers/templates/tree/main/src/go . | ||
| { | ||
| "name": "pgEdge MCP Server — Development", | ||
| "image": "mcr.microsoft.com/devcontainers/go:1.24", | ||
| "features": { | ||
| "ghcr.io/devcontainers/features/node:1": { "version": "20" }, | ||
| "ghcr.io/devcontainers/features/docker-in-docker:2": {} | ||
| }, | ||
| "customizations": { | ||
| "vscode": { | ||
| "extensions": ["golang.go"] | ||
| } | ||
| }, | ||
| "postCreateCommand": "go mod download && cd web && npm ci" | ||
| "name": "pgEdge MCP Server — Development", | ||
| // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
| "image": "mcr.microsoft.com/devcontainers/go:2-1.25-trixie", | ||
| "features": { | ||
| "ghcr.io/devcontainers/features/github-cli:1": { | ||
| "installDirectlyFromGitHubRelease": true, | ||
| "version": "latest" | ||
| }, | ||
| "ghcr.io/devcontainers-extra/features/claude-code:1": { | ||
| "version": "latest" | ||
| } | ||
| }, | ||
| "mounts": [ | ||
| "source=${localEnv:HOME}/.config/gh,target=/home/vscode/.config/gh,type=bind", | ||
| "source=${localEnv:HOME}/.claude/commands,target=/home/vscode/.claude-host/commands,type=bind,readonly", | ||
| "source=${localEnv:HOME}/.claude/settings.json,target=/home/vscode/.claude-host/settings.json,type=bind,readonly" | ||
| ], | ||
| // The bind-mounted ~/.config/gh already authenticates the `gh` CLI | ||
| // inside the container, so we do not plumb GH_TOKEN through the | ||
| // environment; tools that need the raw token can call `gh auth token`. | ||
| "postCreateCommand": "mkdir -p ~/.claude && ln -sf ~/.claude-host/commands ~/.claude/commands && if [ -f ~/.claude-host/settings.json ]; then ln -sf ~/.claude-host/settings.json ~/.claude/settings.json; fi && grep -qxF 'alias claude=\"claude --dangerously-skip-permissions\"' ~/.bashrc || echo 'alias claude=\"claude --dangerously-skip-permissions\"' >> ~/.bashrc && sudo env \"PATH=$PATH\" npm update -g @anthropic-ai/claude-code", | ||
| "postAttachCommand": "echo '⚠️ NOTICE: This dev container aliases `claude` to `claude --dangerously-skip-permissions`. Run `unalias claude` or invoke `/usr/local/bin/claude` directly to restore safety prompts.'", | ||
|
|
||
| // Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
| "forwardPorts": [5173, 8000, 8080], | ||
| "portsAttributes": { | ||
| "5173": { | ||
| "label": "NLA", | ||
| "onAutoForward": "notify" | ||
| }, | ||
| "8000": { | ||
| "label": "Docs", | ||
| "onAutoForward": "notify" | ||
| }, | ||
| "8080": { | ||
| "label": "MCP", | ||
| "onAutoForward": "notify" | ||
| } | ||
| } | ||
|
|
||
| // Configure tool-specific properties. | ||
| // "customizations": {}, | ||
|
|
||
| // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
| // "remoteUser": "root" | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.