F0 · Applicazione minima con /health, Dockerfile minimo e docker-compose con PostgreSQL #4

Closed
opened 2026-11-09 11:51:57 +01:00 by Alby96 · 1 comment
Owner

Fase 0 — Preparazione · Specifica: docs/SPEC.md §3, 15.2

Obiettivo

Un servizio ASP.NET Core minimo che parte in container.

Passi

  • Anubis.Server (ASP.NET Core, minimal API) con il solo endpoint /health
  • Dockerfile minimo multi-stage: mcr.microsoft.com/dotnet/sdk:10.0 per la build, aspnet:10.0 per l'esecuzione
  • docker-compose.yml solo per lo sviluppo, con un PostgreSQL locale
  • Prova: docker compose up e curl /health

Criteri di accettazione della fase a cui contribuisce

  • docker compose up avvia l'applicazione minima, che risponde su /health

Valgono sempre le sezioni 2, 16 e 19 della specifica, lo stack dell'ADR 0003 (al posto della sezione 3), i soli componenti esterni dell'ADR 0004 e le regole di docs/SVILUPPO.md.

**Fase 0 — Preparazione** · Specifica: `docs/SPEC.md` §3, 15.2 ### Obiettivo Un servizio ASP.NET Core minimo che parte in container. ### Passi - [ ] `Anubis.Server` (ASP.NET Core, minimal API) con il solo endpoint `/health` - [ ] Dockerfile minimo multi-stage: `mcr.microsoft.com/dotnet/sdk:10.0` per la build, `aspnet:10.0` per l'esecuzione - [ ] `docker-compose.yml` solo per lo sviluppo, con un PostgreSQL locale - [ ] Prova: `docker compose up` e `curl /health` ### Criteri di accettazione della fase a cui contribuisce - `docker compose up` avvia l'applicazione minima, che risponde su `/health` --- Valgono sempre le sezioni 2, 16 e 19 della specifica, lo stack dell'ADR 0003 (al posto della sezione 3), i soli componenti esterni dell'ADR 0004 e le regole di `docs/SVILUPPO.md`.
Alby96 added this to the Fase 0 — Preparazione milestone 2026-11-09 11:51:57 +01:00
Alby96 added the Kind/Feature
Priority
High
2
Area/Docker e CI
labels 2026-11-09 11:51:57 +01:00
Author
Owner

Fatto (commit b4bf864).

  • Anubis.Server con il solo GET /health.
  • Dockerfile multi-stage: build su sdk:10.0, esecuzione su aspnet:10.0 con utente non privilegiato, ripristino bloccato.
  • docker-compose.yml con PostgreSQL 18.

Prova:

  • docker compose up --build -d --wait → postgres Healthy, anubis Started;
  • curl -i http://localhost:8787/health → HTTP/1.1 200 OK, {"status":"ok","name":"Anubis","version":"0.0.1"};
  • nel container: uid=1654(app), Ubuntu 24.04.5 LTS.
Fatto (commit b4bf864). - `Anubis.Server` con il solo `GET /health`. - Dockerfile multi-stage: build su `sdk:10.0`, esecuzione su `aspnet:10.0` con utente non privilegiato, ripristino bloccato. - `docker-compose.yml` con PostgreSQL 18. Prova: - `docker compose up --build -d --wait` → postgres Healthy, anubis Started; - `curl -i http://localhost:8787/health` → `HTTP/1.1 200 OK`, `{"status":"ok","name":"Anubis","version":"0.0.1"}`; - nel container: `uid=1654(app)`, Ubuntu 24.04.5 LTS.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: BalboSoft/Anubis#4