Files
Bifrost/.claude/skills/docker-test-environment/SKILL.md
T
Arnaud Dartois 021281f3dd
Build Bifrost / build (push) Failing after 2m37s
feat: add reproducible local import validation
2026-10-29 10:56:19 +01:00

2.9 KiB

name, description
name description
docker-test-environment Use when changing the local Docker build, test Compose stack, SonarQube/Gitea/PostgreSQL images, or plugin mounting.

Docker test environment

  • Pin SonarQube Community Build to 25.9.0.112764-community and pin PostgreSQL and Gitea image tags.
  • Provide health checks and start dependencies before SonarQube; persist database data in named volumes.
  • Mount the plugin JAR read-only into /opt/sonarqube/extensions/plugins/ and restart SonarQube after packaging.
  • Use test-only credentials from environment variables; never commit live tokens.
  • Document Linux kernel prerequisites for Docker hosts (including vm.max_map_count where needed by the bundled search engine).
  • Keep the Compose test stack isolated from production volumes and endpoints.
  • Run full import tests under a dedicated Compose project name (bifrost-e2e) with its own named volumes. A clean reset may remove only that project's volumes. On Windows use ./scripts/e2e.ps1; it invokes the native Windows Docker CLI rather than WSL Docker.
  • Pin the browser runner image and Playwright npm dependency to the same release; keep package-lock.json and install with npm ci.
  • Bootstrap Gitea through its CLI and documented API; configure SonarQube through documented Web APIs, then run a real Chromium page test.
  • Leave the successful isolated stack available for inspection and document the exact command that removes it.

Checklist

  • All service image tags pinned.
  • Health checks and durable named DB volumes present.
  • Test plugin mount path correct.
  • Setup and credentials documented safely.
  • Zero-to-import runner resets only its isolated project, checks readiness, and asserts created projects and links.
  • Browser version and npm package are pinned together with a lockfile.

Sources

Not verified

  • Windows Docker image startup and local cross-container import passed via ./scripts/e2e.ps1 on 2026-10-29. Linux Docker execution of scripts/e2e.sh has not been run on this host.