Share Cline configuration with the ecaas and cdp devcontainers

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.
This commit is contained in:
2026-11-18 22:52:47 +01:00
parent 3facf61866
commit 66925b1d0d
9 changed files with 27 additions and 8 deletions

View File

@@ -2,8 +2,8 @@
Same toolset and mounts as the [ecaas container](deadalus-ecaas-devcontainer.md)
(Git configuration and GitLab CAs, Bash configuration, `~/.m2`, `~/.claude`,
`~/.cline`, `~/.config/ai`, Docker outside of Docker, Claude Code, Cline, delta,
Great Icons), with these differences:
`~/.cline`, `~/.agents`, `~/.config/ai`, Docker outside of Docker, Claude Code,
Cline, delta, Great Icons), with these differences:
- Java 25 (`mcr.microsoft.com/devcontainers/java:25-bookworm`) is the default JDK
and also runs the Java and Spring language servers; there is no second JDK.

View File

@@ -19,8 +19,8 @@ Do not use the production context to build or open the workspace.
The container uses Java 11 for the application and Maven, and Java 21 only for
the Java and Spring language servers. VS Code installs the Java and Spring Boot
extension packs, XML, YAML and the VSCode Great Icons theme (selected as the
file icon theme) inside the container. The Java
extension packs, XML, YAML, the Cline extension and the VSCode Great Icons theme
(selected as the file icon theme) inside the container. The Java
pack includes Maven, the Java debugger and test integration. Prefer the project's
Maven wrapper where present. Node is provided for the Claude and Cline CLIs.
@@ -84,7 +84,13 @@ the container; changes made by `glab` inside affect the WSL configuration.
Claude and Cline use the WSL configuration directly: `~/.claude` and `~/.cline`
are bind-mounted read-write at `/home/vscode/.claude` and `/home/vscode/.cline`,
and `~/.config/ai` read-only at `/home/vscode/.config/ai`. Settings, rules,
the cross-tool `~/.agents` read-only at `/home/vscode/.agents`, and
`~/.config/ai` read-only at `/home/vscode/.config/ai`, so rules, the AGENTS
pointer and the shared AI context follow the WSL host. The playbook keeps
Cline's managed configuration deployed on the host (`cline_deploy_enabled:
true`) even though the cline CLI npm package is not installed there; the CLI
ships inside the image and the VS Code Cline extension is installed through
the devcontainer customizations. Settings, rules,
skills, MCP configuration, sessions and **credential stores** are therefore
shared with, and visible to, the container, and changes made inside it affect
the WSL home. Host paths and tools referenced by rules or skills may need