mirror of
https://github.com/onyx-dot-app/onyx.git
synced 2026-10-21 19:02:45 -05:00
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
25 lines
1.3 KiB
JSON
25 lines
1.3 KiB
JSON
{
|
|
"name": "Onyx Dev Sandbox",
|
|
"image": "onyxdotapp/onyx-devcontainer@sha256:12184169c5bcc9cca0388286d5ffe504b569bc9c37bfa631b76ee8eee2064055",
|
|
"runArgs": ["--cap-add=NET_ADMIN", "--cap-add=NET_RAW"],
|
|
"mounts": [
|
|
"source=${localEnv:DOCKER_SOCK},target=/var/run/docker.sock,type=bind",
|
|
"source=${localEnv:HOME}/.claude,target=/home/dev/.claude,type=bind",
|
|
"source=${localEnv:HOME}/.claude.json,target=/home/dev/.claude.json,type=bind",
|
|
"source=${localEnv:HOME}/.zshrc,target=/home/dev/.zshrc.host,type=bind,readonly",
|
|
"source=${localEnv:HOME}/.gitconfig,target=/home/dev/.gitconfig,type=bind,readonly",
|
|
"source=${localEnv:HOME}/.config/nvim,target=/home/dev/.config/nvim,type=bind,readonly",
|
|
"source=onyx-devcontainer-cache,target=/home/dev/.cache,type=volume",
|
|
"source=onyx-devcontainer-local,target=/home/dev/.local,type=volume"
|
|
],
|
|
"containerEnv": {
|
|
"SSH_AUTH_SOCK": "/tmp/ssh-agent.sock"
|
|
},
|
|
"remoteUser": "${localEnv:DEVCONTAINER_REMOTE_USER:dev}",
|
|
"updateRemoteUserUID": false,
|
|
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=delegated",
|
|
"workspaceFolder": "/workspace",
|
|
"postStartCommand": "sudo bash /workspace/.devcontainer/init-dev-user.sh && sudo bash /workspace/.devcontainer/init-firewall.sh",
|
|
"waitFor": "postStartCommand"
|
|
}
|