2.9 KiB
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-communityand 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_countwhere 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.jsonand install withnpm 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
- SonarQube Docker setup: https://docs.sonarsource.com/sonarqube-community-build/server-update-and-maintenance/update/update (consulted 2026-10-28)
- SonarQube Docker image tags: https://hub.docker.com/_/sonarqube (consulted 2026-10-28)
- Docker Compose specification: https://docs.docker.com/compose/compose-file/ (consulted 2026-10-28)
- Playwright Docker image: https://playwright.dev/docs/docker (consulted 2026-10-29)
- Gitea administration CLI: https://docs.gitea.com/administration/command-line/ (consulted 2026-10-29)
- Gitea API 1.23 token creation: https://docs.gitea.com/api/1.23/operations/user-create-token/ (consulted 2026-10-29)
- Gitea 1.23 organization repository creation: https://docs.gitea.com/api/1.23/operations/create-org-repo/ (consulted 2026-10-29)
- SonarQube page extension: https://docs.sonarsource.com/sonarqube-community-build/extension-guide/developing-a-plugin/adding-pages-to-the-webapp (consulted 2026-10-29)
Not verified
- Windows Docker image startup and local cross-container import passed via
./scripts/e2e.ps1on 2026-10-29. Linux Docker execution ofscripts/e2e.shhas not been run on this host.