Commit graph

2 commits

Author SHA1 Message Date
Mikael Hugo
a4ca979cc2 fix: make server/migrate scripts app-agnostic
Detect the app binary by trying centralcloud_staff then centralcloud_my.
Fixes CrashLoopBackOff when centralcloud-staff image ran /app/bin/server
which was hardcoded to exec ./centralcloud_my (not found in staff image).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-11 13:52:44 +02:00
Mikael Hugo
9e0b43ea90 feat: add health endpoint, release config, and Dockerfile for k8s deployment
- GET /api/health — JSON probe endpoint (no auth)
- CentralcloudMy.Release — Ecto migrate/rollback for init container
- rel/overlays/bin/{server,migrate} scripts for the OTP release
- mix.exs releases: centralcloud_my targeting core + my apps
- Dockerfile: umbrella-aware multi-stage build on hexpm/elixir:1.19.5-erlang-28

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-09 20:45:22 +02:00