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:
34
.devcontainer/devcontainer.json
Normal file
34
.devcontainer/devcontainer.json
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user