Commit Graph

2 Commits

Author SHA1 Message Date
darroyo d101d6df0f feat: add HTTP healthcheck endpoint via quarkus-smallrye-health
CI / Build Native (push) Failing after 16m25s
- pom.xml: add quarkus-smallrye-health dependency.
  Exposes /q/health/live and /q/health/ready endpoints (liveness
  and readiness probes for Quarkus apps).
- Dockerfile: install curl-minimal in the microdnf layer so the
  container has a real HTTP client. quarkus-micro-image is based
  on UBI 9 minimal and doesn't ship with curl by default.
- compose.yaml: healthcheck now hits GET /q/health/live with
  curl -f instead of the previous kill -0 1 (which only proved
  the process was alive, not that the HTTP server was responding).

The next CI run will rebuild the native binary with the health
extension baked in; old images pulled from :latest will keep
working since this is additive.
2026-08-13 13:01:20 -04:00
darroyo 12d382d253 feat: add compose.yaml for one-line install
CI / Build Native (push) Has been cancelled
docker compose pull
  docker compose up -d
  docker compose logs -f

  - Single service `shot-crafter` pulling from
    gitea.danielarroyo.cl/proyectos/shot-crafter-calculator:latest
  - Named volume `shot-crafter-data` mounted at /work/data
    so the H2 DB persists across `down`/`up` cycles
  - env vars inline (overridable via -e or .env): DB URL,
    HTTP port/host, cookie name + secure flag
  - healthcheck using `kill -0 1` (the native binary is PID 1,
    POSIX-portable, no extra binaries needed)
  - restart: unless-stopped so it survives Docker daemon restarts

Ver .env.example para la lista completa de variables operacionales.
2026-08-13 12:48:03 -04:00