Skip to content

Commit 147b398

Browse files
whizzzkidclaude
andauthored
feat(devcontainer): ✨ Devcontainer with Claude-Code Support. (#264)
### Devcontainers + Claude In this PR: - Introducing devcontainer support - Auto load claude-code support. - `bypassPermissions` with sensible defaults. - Just start the devcontainer and it should load claude for you in the devcontainer. ### Screengrab https://github.com/user-attachments/assets/c515eb7b-a872-448f-b1d9-f2f2c35c550b --------- Signed-off-by: Nishant Arora <1895906+whizzzkid@users.noreply.github.com> Co-authored-by: Claude (global.anthropic.claude-opus-4-5-20251101-v1:0) <noreply@anthropic.com>
1 parent 5f1b80d commit 147b398

4 files changed

Lines changed: 62 additions & 2 deletions

File tree

.claude/settings.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash",
5+
"Read",
6+
"Edit",
7+
"Write",
8+
"WebFetch",
9+
"Grep",
10+
"Glob",
11+
"LS",
12+
"MultiEdit",
13+
"TodoRead",
14+
"TodoWrite",
15+
"WebSearch"
16+
],
17+
"deny": [],
18+
"ask": [],
19+
"defaultMode": "bypassPermissions"
20+
}
21+
}

.devcontainer/devcontainer.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "Scope",
3+
"dockerComposeFile": ["docker-compose.yaml"],
4+
"service": "devcontainer",
5+
"postStartCommand": "mise trust -y && mise use -g node@24 && mise install",
6+
"postAttachCommand": "echo 'eval \"$(mise activate zsh)\"' >> ~/.zshrc && echo 'eval \"$(mise activate bash)\"' >> ~/.bashrc",
7+
"workspaceFolder": "/workspace",
8+
"shutdownAction": "stopCompose",
9+
"remoteUser": "vscode",
10+
"customizations": {
11+
"vscode": {
12+
"extensions": [
13+
"rust-lang.rust-analyzer",
14+
"vivaxy.vscode-conventional-commits"
15+
],
16+
"settings": {
17+
"remote.containers.copyGitConfig": true
18+
}
19+
}
20+
},
21+
"features": {
22+
"ghcr.io/stu-bell/devcontainer-features/claude-code:0": {},
23+
"ghcr.io/devcontainers-extra/features/mise:1": {},
24+
"ghcr.io/devcontainers/features/aws-cli:1": {},
25+
"ghcr.io/devcontainers/features/git:1": {}
26+
}
27+
}

.devcontainer/docker-compose.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
1-
version: "2"
21
name: scope
32
services:
43

4+
# Development container
5+
devcontainer:
6+
image: mcr.microsoft.com/devcontainers/base:debian
7+
command: sleep infinity
8+
volumes:
9+
- ../:/workspace
10+
- ~/.claude:/home/vscode/.claude
11+
- ~/.aws:/home/vscode/.aws
12+
links:
13+
- otel-collector
14+
515
# Jaeger
616
jaeger-all-in-one:
717
image: jaegertracing/all-in-one:latest
@@ -44,4 +54,4 @@ services:
4454
volumes:
4555
- ./prometheus.yaml:/etc/prometheus/prometheus.yml
4656
ports:
47-
- "9090:9090"
57+
- "9090:9090"

mise.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[tools]
2+
rust = "latest"

0 commit comments

Comments
 (0)