php-devops/.devcontainer/devcontainer.json
Snider 63079ed187 feat: add developer container config with packages/ mount
- docker-compose.yml for standalone Docker usage
- .devcontainer/devcontainer.json for VS Code/Cursor
- Mounts packages/ as /workspace in container
- Persists home directory with named volume
- SSH and gitconfig mounted read-only

Uses ghcr.io/host-uk/core-images/developer:latest

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 22:58:09 +00:00

33 lines
861 B
JSON

{
"name": "Core Developer",
"image": "ghcr.io/host-uk/core-images/developer:latest",
"workspaceMount": "source=${localWorkspaceFolder}/packages,target=/workspace,type=bind",
"workspaceFolder": "/workspace",
"mounts": [
"source=${localEnv:HOME}/.ssh,target=/root/.ssh,type=bind,readonly",
"source=${localEnv:HOME}/.gitconfig,target=/root/.gitconfig,type=bind,readonly",
"source=core-dev-home,target=/root,type=volume"
],
"containerEnv": {
"TERM": "xterm-256color",
"EDITOR": "nvim"
},
"customizations": {
"vscode": {
"extensions": [
"bmewburn.vscode-intelephense-client",
"golang.go",
"ms-python.python",
"rust-lang.rust-analyzer"
]
}
},
"postCreateCommand": "echo 'Core Developer ready. Workspace: /workspace (packages/)'",
"remoteUser": "root"
}