mirror of
https://github.com/fscotto/infra.git
synced 2026-11-25 21:29:51 +00:00
Keep Cline deploy-only on deadalus so its rules, the cross-tool AGENTS pointer and the shared ~/.config/ai context are deployed on the WSL host; mount ~/.agents into the containers; list the Cline VS Code extension in the devcontainer customizations. The CLI package stays absent on the host and ships in the images.
65 lines
2.5 KiB
Django/Jinja
65 lines
2.5 KiB
Django/Jinja
{
|
|
"name": "cdp — Java 25 / Node 20",
|
|
"build": {
|
|
"dockerfile": "Dockerfile",
|
|
"args": {
|
|
"MAVEN_VERSION": {{ workstation_maven_version | to_json }},
|
|
"NODE_VERSION": {{ workstation_cdp_node_version | to_json }}
|
|
}
|
|
},
|
|
"remoteUser": "vscode",
|
|
"updateRemoteUserUID": true,
|
|
"containerEnv": {
|
|
"CLAUDE_CONFIG_DIR": "/home/vscode/.claude",
|
|
"HISTFILE": "/home/vscode/.bash_history.d/history"
|
|
},
|
|
"remoteEnv": {
|
|
"ANTHROPIC_AUTH_TOKEN": "${localEnv:ANTHROPIC_AUTH_TOKEN}"
|
|
},
|
|
"features": {
|
|
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
|
|
"moby": false
|
|
}
|
|
},
|
|
"mounts": [
|
|
{{ ('type=bind,source=' ~ ecaas_agent_state ~ '/git,target=/run/ecaas-git,readonly') | to_json }},
|
|
{% for ca in ecaas_git_available_cas %}
|
|
{{ ('type=bind,source=' ~ user_home ~ '/.local/share/certs/' ~ ca.certificate ~ ',target=/run/ecaas-git-ca/' ~ ca.certificate ~ ',readonly') | to_json }},
|
|
{% endfor %}
|
|
{{ ('type=bind,source=' ~ user_home ~ '/.config/ai,target=/home/vscode/.config/ai,readonly') | to_json }},
|
|
{{ ('type=bind,source=' ~ user_home ~ '/.local/state/devcontainer-bash-history/cdp,target=/home/vscode/.bash_history.d') | to_json }},
|
|
{{ ('type=bind,source=' ~ user_home ~ '/.claude,target=/home/vscode/.claude') | to_json }},
|
|
{{ ('type=bind,source=' ~ user_home ~ '/.cline,target=/home/vscode/.cline') | to_json }},
|
|
{{ ('type=bind,source=' ~ user_home ~ '/.agents,target=/home/vscode/.agents,readonly') | to_json }},
|
|
{{ ('type=bind,source=' ~ user_home ~ '/.m2,target=/home/vscode/.m2') | to_json }},
|
|
{{ ('type=bind,source=' ~ user_home ~ '/.config/glab-cli,target=/home/vscode/.config/glab-cli') | to_json }},
|
|
{{ ('type=bind,source=' ~ user_home ~ '/.kube,target=/home/vscode/.kube') | to_json }}
|
|
],
|
|
"forwardPorts": [4200, 4201, 4202, 4210, 8083, 8084],
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"vscjava.vscode-java-pack",
|
|
"vmware.vscode-boot-dev-pack",
|
|
"redhat.vscode-xml",
|
|
"redhat.vscode-yaml",
|
|
"ms-kubernetes-tools.vscode-kubernetes-tools",
|
|
"angular.ng-template",
|
|
"dbaeumer.vscode-eslint",
|
|
"saoudrizwan.claude-dev",
|
|
"emmanuelbeziat.vscode-great-icons"
|
|
],
|
|
"settings": {
|
|
"workbench.iconTheme": "vscode-great-icons",
|
|
"java.configuration.runtimes": [
|
|
{
|
|
"name": "JavaSE-25",
|
|
"path": "/usr/lib/jvm/msopenjdk-current",
|
|
"default": true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|