chore: Add devcontainer configuration

Had to do some trickery to get Claude settings inside the container, but
we are all good now!
This commit is contained in:
2026-06-17 04:57:59 +00:00
parent 6fb38d36f3
commit b0d10c3503
3 changed files with 83 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
{
"features": {
"ghcr.io/devcontainer-community/devcontainer-features/lazygit:1": {
"version": "1.0.2",
"resolved": "ghcr.io/devcontainer-community/devcontainer-features/lazygit@sha256:a9a4b920a615d869bd12149f0430957d496883415b3b436d8948c487e4eb3567",
"integrity": "sha256:a9a4b920a615d869bd12149f0430957d496883415b3b436d8948c487e4eb3567"
},
"ghcr.io/devcontainers-community/npm-features/typescript:1": {
"version": "1.1.0",
"resolved": "ghcr.io/devcontainers-community/npm-features/typescript@sha256:13a0f63e88513a6022431c39b7ca4ec732ba0760cdb6d882638f4ddf73deb0e7",
"integrity": "sha256:13a0f63e88513a6022431c39b7ca4ec732ba0760cdb6d882638f4ddf73deb0e7",
"dependsOn": [
"ghcr.io/devcontainers/features/node"
]
},
"ghcr.io/devcontainers-extra/features/claude-code:2": {
"version": "2.0.0",
"resolved": "ghcr.io/devcontainers-extra/features/claude-code@sha256:37b0d444a704021ee5f6d24242a4621bf337867d110e4e3c06b863a3a78122ac",
"integrity": "sha256:37b0d444a704021ee5f6d24242a4621bf337867d110e4e3c06b863a3a78122ac"
},
"ghcr.io/devcontainers/features/node": {
"version": "2.1.0",
"resolved": "ghcr.io/devcontainers/features/node@sha256:586c9a6f7dd40bd3ba2cd41e7f2f88dcc31fbe5d1442afcbf07ffbc66b686857",
"integrity": "sha256:586c9a6f7dd40bd3ba2cd41e7f2f88dcc31fbe5d1442afcbf07ffbc66b686857"
},
"ghcr.io/jsburckhardt/devcontainer-features/just:1": {
"version": "1.0.0",
"resolved": "ghcr.io/jsburckhardt/devcontainer-features/just@sha256:5c90013b36669270be21c69e7d8e5b6148b4b0b34fca9e104a599edf0d7c11af",
"integrity": "sha256:5c90013b36669270be21c69e7d8e5b6148b4b0b34fca9e104a599edf0d7c11af"
},
"ghcr.io/rails/devcontainer/features/bun:1": {
"version": "1.0.2",
"resolved": "ghcr.io/rails/devcontainer/features/bun@sha256:08057c197a8cde49b08749681607bf0d69aed79e280225cf43ca5d1782028789",
"integrity": "sha256:08057c197a8cde49b08749681607bf0d69aed79e280225cf43ca5d1782028789"
}
}
}

View File

@@ -0,0 +1,34 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
{
"name": "Ubuntu",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/base:resolute",
"features": {
"ghcr.io/jsburckhardt/devcontainer-features/just:1": {},
"ghcr.io/devcontainers-community/npm-features/typescript:1": {},
"ghcr.io/devcontainers-extra/features/claude-code:2": {},
"ghcr.io/devcontainer-community/devcontainer-features/lazygit:1": {},
"ghcr.io/rails/devcontainer/features/bun:1": {}
},
"mounts": [
"source=${localEnv:HOME}/.claude,target=/home/vscode/.claude,type=bind",
"source=${localEnv:HOME}/.claude.json,target=/home/vscode/.claude.json,type=bind"
],
"postCreateCommand": "sudo apt install -y ripgrep"
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "uname -a",
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}