CI / Build and test (SQLite) (pull_request) Successful in 43s
CI / PostgreSQL 16 integration (pull_request) Skipped
CI / PostgreSQL 17 integration (pull_request) Skipped
CI / YAML check (pull_request) Successful in 15s
CI / Docker image (pull_request) Successful in 59s
Start development with the skeleton every later milestone builds on, so that code, image and release path exist and are verified from day one. - Khaemhat.sln with the ten projects of SPEC section 3 and six MSTest projects; shared build rules with warnings as errors, analyzers and Central Package Management restricted to the allowlist. - Architecture tests and scripts/check-packages.sh fail on any project reference or package that SPEC does not allow. - Khaemhat.Web serves an Italian "under construction" page with the official icons and version, plus /health/live, /health/ready and /health (ADR 0012); honours KHAEMHAT_URLS and KHAEMHAT_LOG_LEVEL. - docker/Dockerfile (non-root app user aligned to PUID/PGID by the entrypoint, pg_dump 17, healthcheck, OCI and Unraid labels) and compose files for PostgreSQL and a standalone SQLite demo. - Gitea Actions: ci.yml (build, tests, image smoke test, PostgreSQL 16/17 on tags, YAML check), release.yml (image and release from a vX.Y.Z tag, skipping versions already published) and wiki.yml. - Development scripts, VS Code launch/tasks for debugging, and ADR 0012-0017 deciding the M0 open points of docs/STATUS.md. Closes #1, #2, #3, #4, #5, #114 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
26 lines
1.3 KiB
Markdown
26 lines
1.3 KiB
Markdown
# ADR 0017 - `restore-system.sh` incluso nell'immagine
|
|
|
|
- **Stato:** accettata
|
|
- **Data:** 2026-11-11
|
|
- **Modifica:** SPEC §13, §16.1 (con ADR 0010); chiude il punto aperto 1 di `docs/STATUS.md` (issue #114)
|
|
|
|
## Contesto
|
|
|
|
Il database di sistema si ripristina solo da riga di comando, con l'istanza ferma (`scripts/restore-system.sh`,
|
|
SPEC §13). Con ADR 0010 l'unico artefatto distribuito è l'immagine: chi installa non ha il repository, e scaricare
|
|
uno script a parte al momento del bisogno è fragile (versione diversa da quella installata).
|
|
|
|
## Decisione
|
|
|
|
- L'immagine contiene `/app/scripts/restore-system.sh`, copiato dal repository alla stessa versione dell'app.
|
|
- Si usa con un container temporaneo sullo stesso volume e sulla stessa rete, con l'istanza ferma:
|
|
`docker compose run --rm --entrypoint /app/scripts/restore-system.sh khaemhat <file-di-backup>`.
|
|
- Lo script usa gli strumenti già presenti nell'immagine (`pg_restore` di `postgresql-client-17`, `curl`) e la
|
|
configurazione del container (`KHAEMHAT_SYSTEM_DB`, `KHAEMHAT_SECRET_KEY`). La logica completa arriva in M12; in
|
|
M0 è uno stub che spiega l'uso ed esce con errore.
|
|
|
|
## Conseguenze
|
|
|
|
- La wiki *Backup-e-ripristino* e *Aggiornamento* indicano il comando con `docker compose run`, non il download.
|
|
- Nessun altro script di sviluppo entra nell'immagine.
|