Files
Anubis/docs/adr/0002-gitea-lavori-e-pacchetti.md
T
Alby96andClaude Opus 5.5 e9ac6dccc9 Phase 10: new course and Docker only
Record the course the user chose on 2 December 2026 and make the
container the only form of Anubis.

- ADR 0021-0026: new roadmap (phases 10-24, readings per phase, the
  spec-to-ADR table, merge and tag only after the user's yes),
  Docker only, maths-only decisions, bans turned into limits on margin
  accounts, eToro Demo as currency venue and forward tests, strategy
  championship. ROADMAP rewritten from phase 10; STATE, CLAUDE.md,
  SVILUPPO, README, API-NOTES and the manuals without the desktop.
- Remove the desktop: Anubis.Desktop, Anubis.Setup, deploy/windows,
  release-win and desktop-win, config.toml, PlatformKind,
  ANUBIS_PLATFORM, DPAPI with the ProtectedData package and the
  first-run wizard. Outside a container the server needs --data-dir,
  listens on 127.0.0.1 only and refuses foreign hosts; server and guard
  refuse --platform desktop with an Italian message and exit code 2.
  The demo keeps its key in a file and its error-page choices need no
  startup password. The diagnostics report says where the server runs
  from its own environment.
- Lighter image: restore and publish for linux-x64 only, and leave out
  the Windows libraries ONNX Runtime copies anyway (829 MB to 410 MB on
  disk, /app from 282 MB to 42 MB). Rotating Docker logs in the Unraid
  template, the manual and the compose; backtest and learning run as
  one-shot commands. tasks dev uses artifacts/dev-data.

refs #113 #114 #115 #78 #80 #81

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 17:35:17 +01:00

28 lines
3.0 KiB
Markdown

# 0002 — Gitea per lavori, pacchetto Docker e installatore
Data: 2026-11-09 · Stato: accettata · Elenco delle milestone sostituito dall'ADR 0021; installatore Windows tolto dall'ADR 0022
## Contesto
Il codice sta su un Gitea personale (`https://gitea.encke-hake.ts.net/BalboSoft/Anubis`, in rete locale anche `http://192.168.30.23:3000`). L'utente vuole seguire lo sviluppo da lì: lavori con i loro passi, pacchetto Docker nella sezione Packages del repository, installatore per Windows. La specifica (2.4) tiene la memoria del progetto in file del repository: `ROADMAP.md` e `STATE.md`.
## Decisione
- **Lavori**: una milestone per fase (Fase 0 … Fase 10, più "Fasi opzionali") e una issue per ogni lavoro della fase, con passi da spuntare e i criteri di accettazione a cui contribuisce. Ogni fase ha in più una issue "Chiusura della fase N" con l'elenco completo dei criteri, la revisione indipendente e il tag `fase-N`.
- **Etichette**: quelle standard di Gitea già presenti (`Kind/*`, `Priority/*`, `Status/*`) più `Area/*` per la parte del sistema, `Kind/Chiusura fase` e `Status/In attesa utente` per i criteri che dipendono da chiavi o conferme dell'utente (SPEC 2.3).
- **Fonte di verità**: la specifica resta `docs/SPEC.md`. Le issue sono il piano operativo; `docs/ROADMAP.md` le rispecchia con i numeri e i criteri, e si aggiorna insieme a loro. Se le due cose divergono, vale lo stato delle issue e si corregge `ROADMAP.md`.
- **Pacchetto Docker**: immagine `gitea.encke-hake.ts.net/balbosoft/anubis`, pubblicata nel registry dei pacchetti di Gitea (tipo container) dalla CI sui soli tag `v*`, con `REGISTRY=gitea.encke-hake.ts.net`, `REGISTRY_USER` e `REGISTRY_TOKEN` (un token con permesso `write:package`) come segreti delle Actions. Il template Unraid `deploy/unraid/anubis.xml` punta già a questa immagine.
- **Installatore Windows**: costruito con `tasks desktop-win` su Windows (installatore scritto in casa, ADR 0003 e 0004) e allegato alla release `v*` del repository.
## Alternative scartate
- Una sola issue per fase con tutti i passi: troppo lunga da seguire, non permette di chiudere i lavori uno per volta.
- Una issue per ogni singolo passo: centinaia di issue, rumore senza valore.
- Pubblicare l'immagine su Docker Hub o GHCR: il codice e i lavori stanno su Gitea, il pacchetto deve stare accanto.
## Conseguenze
- Da verificare nella Fase 0: se l'istanza ha un esecutore di Gitea Actions attivo. Senza, la CI gira in locale con `tasks ci` e la pubblicazione si fa a mano (`docker login gitea.encke-hake.ts.net`, `docker push`), come prevede la SPEC 15.5.
- Da verificare nella Fase 9: che il server Unraid raggiunga il registry. `gitea.encke-hake.ts.net` è un nome Tailscale con HTTPS: funziona se Unraid è nella stessa rete Tailscale. In alternativa l'indirizzo locale `192.168.30.23:3000` è in HTTP e richiede di dichiararlo tra gli `insecure-registries` del Docker di Unraid. Il manuale spiega entrambe le strade.
- I nomi dei pacchetti container su Gitea sono in minuscolo: `balbosoft/anubis`, anche se l'organizzazione si chiama `BalboSoft`.