OPC # 0001: Extract OPC into standalone repo

This commit is contained in:
amadzarak
2026-04-25 17:26:42 -04:00
commit 42383bdc03
170 changed files with 21365 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
-- Platform database initialisation
-- Runs once on first container boot via docker-entrypoint-initdb.d.
-- Only creates databases that platform infrastructure owns.
--
-- controlplanedb → ControlPlane bootstraps this itself on first run.
-- giteadb → Gitea creates this itself via GITEA__database env vars.
-- clarity_{tenant} → Created at provisioning time by ControlPlane.Worker.
SELECT 'CREATE DATABASE keycloakdb' WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'keycloakdb')\gexec