docs: add specification, design docs, mockups, wiki and deploy files
Prepare everything needed before development starts on Khaemhat, the ERP + CRM for Italian SMEs: - docs/SPEC.md: the original project specification, unchanged, plus CLAUDE.md with operational rules and amendments (Gitea instead of GitHub/GHCR, Docker image as the only deliverable). - ADR 0001-0011 for the baseline decisions. - Mockups: 22 high-resolution screens, the full gallery, 88 thumbnails cropped from it, mockup.css and an index. - Technical docs (architecture, data model, modules, API, MCP, deploy, security, development process, status with open spec questions). - Full draft wiki in docs/wiki (already published to the Gitea wiki). - Icons in assets/ and deploy files for Docker Compose and Unraid, pointing to the Gitea package registry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
44fa273be5
commit
e746d99dab
207 files changed
+13496
-1
No files matched your search
@@ -0,0 +1,46 @@
|
||||
# ADR 0009 — Gitea al posto di GitHub e GHCR
|
||||
|
||||
- **Stato:** accettata
|
||||
- **Data:** 2026-11-10
|
||||
- **Sostituisce in parte:** SPEC §1.13, §4 (`.github/`), §6 (`KHAEMHAT_UPDATE_FEED`), §12.8, §16.2, §16.3, §16.6, §17,
|
||||
Appendici C e D
|
||||
|
||||
## Contesto
|
||||
|
||||
La specifica prevede repository, CI, wiki e registro immagini su GitHub (GHCR), con minuti di CI contati. Il
|
||||
titolare del progetto usa invece un'istanza **Gitea** self-hosted (`https://gitea.encke-hake.ts.net`, in LAN
|
||||
`http://192.168.30.23:3000`), con organizzazione `BalboSoft`, `act_runner` già configurato per altri progetti
|
||||
(Chronos, Rail Enterprise) e registro pacchetti container in uso (`gitea.encke-hake.ts.net/balbosoft/<immagine>`).
|
||||
Il repository `BalboSoft/Khaemhat` è pubblico.
|
||||
|
||||
## Decisione
|
||||
|
||||
| Area | Specifica originale | Ora |
|
||||
|---|---|---|
|
||||
| Repository | GitHub, `origin` = `GITHUB_REPO_URL` | Gitea `BalboSoft/Khaemhat`, `origin` = `http://192.168.30.23:3000/BalboSoft/Khaemhat.git` |
|
||||
| Pianificazione | — | Issue, milestone M0…M14, etichette e progetto *Khaemhat 1.0* su Gitea |
|
||||
| CI | GitHub Actions in `.github/workflows/` | **Gitea Actions** in `.gitea/workflows/`, `act_runner` self-hosted (Docker, `ubuntu-latest`) |
|
||||
| Checkout nei job | `actions/checkout` | `git init` + `git fetch` con `github.token` (l'immagine SDK non ha Node.js), come in Chronos |
|
||||
| Cache NuGet | `actions/cache` | nessuna cache esplicita: il runner riusa le immagini dell'host; restore a ogni job |
|
||||
| Registro immagini | `ghcr.io/<owner>/khaemhat` | `gitea.encke-hake.ts.net/balbosoft/khaemhat` |
|
||||
| Rilascio | `publish-image.sh` locale + `release.yml` manuale | `release.yml` sui tag `v*` (segreto `REGISTRY_TOKEN`) + `publish-image.sh` come alternativa locale |
|
||||
| Wiki | wiki GitHub (`<repo>.wiki.git`) | wiki Gitea (`Khaemhat.wiki.git`); `wiki.yml` + `publish-wiki.sh` |
|
||||
| Icona Unraid | repository pubblico `khaemhat-assets` su GitHub | URL raw del repository pubblico: `…/BalboSoft/Khaemhat/raw/branch/main/assets/icon-v1.0-256.png` |
|
||||
| Controllo aggiornamenti | `GhcrPackagesClient`, API GitHub packages | `GiteaPackagesClient`, `GET /api/v1/packages/BalboSoft?type=container&q=khaemhat` |
|
||||
| Variabili degli script | `GITHUB_OWNER`, `GITHUB_TOKEN` | `GITEA_URL`, `GITEA_OWNER`, `GITEA_TOKEN` |
|
||||
|
||||
Trigger dei workflow (risparmio di risorse del server condiviso al posto dei "minuti contati"):
|
||||
|
||||
- `ci.yml`: `pull_request` verso `main`, `push` su `main` con `paths-ignore: [docs/**, "*.md", assets/**, deploy/**]`,
|
||||
tag `v*`, `workflow_dispatch`. Un job build+test su SQLite; il job PostgreSQL 16/17 gira solo sui tag e a mano.
|
||||
- `release.yml`: tag `v*` e `workflow_dispatch`: build dell'immagine `linux/amd64` (arm64 opzionale), smoke test
|
||||
`/health/live`, push nel registro Gitea, release Gitea con le note dal `CHANGELOG.md`.
|
||||
- `wiki.yml`: `push` su `main` che tocca `docs/wiki/**`: sincronizza il wiki Gitea.
|
||||
|
||||
## Conseguenze
|
||||
|
||||
- `GhcrPackagesClient` diventa `GiteaPackagesClient`; i test usano risposte registrate dell'API Gitea.
|
||||
- Il template Unraid e il compose puntano al registro Gitea; per tirare l'immagine da Unraid serve
|
||||
`docker login gitea.encke-hake.ts.net` solo se il pacchetto non è pubblico.
|
||||
- `docs/DEPLOY.md`, la wiki *Installazione* e *Aggiornamento* descrivono il registro Gitea.
|
||||
- Le pagine wiki usano link `[Testo](Nome-Pagina)` (compatibili con Gitea) e immagini con URL raw del ramo `main`.
|
||||
Reference in new issue
Block a user