CentralCloud unified portal — Elixir/Phoenix umbrella (centralcloud_my: customer, centralcloud_ops: staff/oncall, centralcloud_core: shared)
Find a file
Mikael Hugo 1af4dd8dda fix: Dockerfile builds both centralcloud_staff and centralcloud_my
- Fix broken reference to apps/centralcloud_ops (renamed to centralcloud_staff)
- Add multi-target Dockerfile: --target my and --target staff
- Both releases now built from one build stage (shared layer cache)
- Add OPS_ENGINE_URL config in runtime.exs for staff → engine API calls

  docker build --target staff -t .../centralcloud-staff:VERSION .
  docker build --target my    -t .../centralcloud-my:VERSION .

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-11 13:34:05 +02:00
_build/dev refactor: rename centralcloud_ops → centralcloud_staff in portal 2026-05-11 13:06:21 +02:00
apps refactor: rename centralcloud_ops → centralcloud_staff in portal 2026-05-11 13:06:21 +02:00
config fix: Dockerfile builds both centralcloud_staff and centralcloud_my 2026-05-11 13:34:05 +02:00
deps refactor: rename centralcloud_ops → centralcloud_staff in portal 2026-05-11 13:06:21 +02:00
rel/overlays/bin feat: add health endpoint, release config, and Dockerfile for k8s deployment 2026-05-09 20:45:22 +02:00
.envrc feat: add flake.nix, .envrc, fix config (runtime.exs), deps compile clean 2026-05-09 19:55:48 +02:00
.gitignore chore: add _build/ and deps/ to .gitignore 2026-05-09 20:25:22 +02:00
Dockerfile fix: Dockerfile builds both centralcloud_staff and centralcloud_my 2026-05-11 13:34:05 +02:00
erl_crash.dump refactor: rename centralcloud_ops → centralcloud_staff in portal 2026-05-11 13:06:21 +02:00
flake.lock chore: pin nixpkgs to nixos-25.11 and add centralcloud cache config 2026-05-10 23:16:14 +02:00
flake.nix fix: use cached erlang in devShell (avoid full recompile) 2026-05-11 11:59:04 +02:00
mix.exs refactor: rename centralcloud_ops → centralcloud_staff in portal 2026-05-11 13:06:21 +02:00
mix.lock feat: add flake.nix, .envrc, fix config (runtime.exs), deps compile clean 2026-05-09 19:55:48 +02:00
README.md docs: update README and AGENTS.md after centralcloud_staff rename 2026-05-11 13:19:30 +02:00

centralcloud/portal

Elixir/Phoenix umbrella — two web surfaces from one codebase.

Apps

App URL Audience
centralcloud_staff ops.centralcloud.com Staff — ops cockpit, AI chat, on-call
centralcloud_my my.centralcloud.com Customers — dashboard, DR, billing, support
centralcloud_core (library) Shared: HostBill client, DR API client, OIDC

Note: centralcloud_staff is the thin UI layer. All business logic (incidents, pager, oncall engine, AI triage) lives in ../infra/apps/centralcloud_ops (the backend engine).

my.centralcloud.com will also serve www.centralcloud.com (marketing pages) when DNS is repointed.

Quick start

# Enter dev shell (Elixir 1.20-rc.4 + OTP 28 via Nix)
nix develop

# Install deps (from umbrella root)
mix deps.get

# Run customer portal (port 4001)
cd apps/centralcloud_my && mix phx.server

# Run staff portal (port 4000)
cd apps/centralcloud_staff && mix phx.server

Required env vars

MY_SECRET_KEY_BASE=...        # mix phx.gen.secret
OPS_SECRET_KEY_BASE=...
HOSTBILL_API_ID=...           # from HostBill admin API keys
HOSTBILL_API_KEY=...
DR_PORTAL_URL=https://dr.centralcloud.com
DR_PORTAL_API_KEY=...
OIDC_CLIENT_ID=...            # Authentik application client ID
OIDC_CLIENT_SECRET=...
ROUTER_AGENT_URL=http://router-agent.router-agent.svc:8642
ROUTER_AGENT_API_KEY=...      # from OpenBao / k8s secret

Architecture

See ../AGENTS.md for the full codebase map and how portal, engine, and agents relate.