Merge pull request #138 Co-authored-by: Arnaud Dartois <admin@tordais.cc>
5.0 KiB
name, description
| name | description |
|---|---|
| deployment-guide-acceptance | Keep Heimdall's Docker installation and backup guides aligned with the actual Compose assets and validate source-built installation flows in a disposable project. |
Heimdall deployment guide acceptance
Read AGENTS.md, todo.md, docs/docker-compose.md, and the relevant Compose and focused skills before changing deployment instructions.
Project-specific documentation checks
- Central production is PostgreSQL plus Heimdall Web. The development Compose builds Central from source; the interactive Linux/Windows installers create deployment files without cloning the repository.
- Production Agent Compose is generated in Central for the selected site and pins the image digest. The repository's Agent Compose files are development or optional hardware overlays only.
- Recording quota is configured through
RECORDING_STORAGE_QUOTA_MAX_BYTES; absent an override, Central uses 1 TiB. - The Central image installs Tesseract plus English language data.
PLATE_OCR_ENABLEDis mapped toPlateOcr__Enabledby the development and production Compose files and both Linux/Windows installer templates. New installs default it to false; upgrades preserve an existing value and add false if absent. If documented, explain that OCR is an operator-uploaded crop processed locally, not automatic video detection or face recognition; mention temporary crop deletion and that OCR candidates do not establish identity. - The scheduled backup service installs AWS CLI, Bash, and GNU coreutils. The backup scripts select AWS CLI in this image and use S3-compatible configuration; do not instruct operators to download the retired MinIO
mcURL. - Optional Compose projects depend on the documented external core network and, where stated, the Central data volume. Do not describe an optional service as part of required startup.
Disposable installation acceptance
- Follow the local development installation commands in
docs/docker-compose.mdfrom the changed checkout. Create a unique project, isolated bridge, generated database/JWT credentials and unused loopback ports under a temporary directory. Do not copy production.env, use the default credentials unchanged, or use deployed volumes/networks. - Run Compose config validation, build Central from source, start PostgreSQL and Central, then verify PostgreSQL health, Central
/healthz, bootstrap status, and the documented opt-in default for OCR. - When documentation covers OCR enablement, set
PLATE_OCR_ENABLED=truein the generated temporary env and verify the option reaches the container, then exercise the synthetic crop path. Also verify false by default. Do not infer real camera accuracy. - Install an EXIT cleanup trap before build/start. Tear down only the named project with
down --volumes --remove-orphans; verify zero project containers, volumes, and networks. Remove temporary environment and secret files even if build or assertions fail. - Record a unique tag for each locally built Central/helper image before build. After teardown, remove and verify absence of each exact tag. Keep shared upstream runtime/database images, preserve test exit status, report cleanup errors, and never use
--rmi allor prune images broadly. - Keep Windows installer execution, production recovery, external S3 services, and real hardware acceptance open unless independently run on those targets.
When the Docker daemon is reserved by another acceptance, perform static source/config review and record the Compose run as pending. Never launch an overlapping project to satisfy this recipe.
Latest local attempt
On 5 November 2026, Compose configuration and installer-source assertions passed, but the source build acceptance did not complete: BuildKit's docker-buildx client remained blocked for over eight minutes after its compiler child disappeared, with no project containers created. The command was interrupted; its cleanup trap confirmed zero project containers, volumes, and networks and removed the generated env. A follow-up Compose project hmd-ocr-env-safe-1793874420 reused the previously source-built Central OCR image (the current checkout rebuild was still blocked) to exercise the changed Compose wiring: default PlateOcr__Enabled=false and explicit true after recreate both reported healthy. Sentry__Dsn was explicitly empty. Cleanup verified zero containers, volumes, and networks. These are partial recipe results: the reused application image was not a uniquely built image for this recipe, and no exact-tag removal/absence check is recorded. Repeat the source build and probe with a fresh project tag before treating deployment-guide Compose acceptance as complete. An earlier attempt without the Sentry override emitted synthetic EF log events to the configured GlitchTip; no real credentials/data were used. The Compose environment mapping is verified; rebuilding this exact checkout and Windows installer execution remain unverified. pwsh was not installed, so the Windows installer was reviewed statically only.