feat: build keycloak image with an optimised build and pinned base #3

Sammanfogat
supernaut sammanfogade 1 incheckning från feat/keycloak-image in i main 2026-10-08 18:56:01 +00:00
Ägare

Builds our own Keycloak image, so production pulls nothing from quay.io.

What

  • Containerfile: quay.io/keycloak/keycloak:26.8.0, pinned by tag and digest. kc.sh build with PostgreSQL, health, metrics and local caches. The runtime image starts with start --optimized. Theme JARs go into /opt/keycloak/providers/ before the build (#2).
  • scripts/smoke-test.sh: starts the image against PostgreSQL in a pod and waits for /health/ready on port 9000.
  • ci.yml: gitleaks, build, smoke test on every pull request and on main.
  • release.yml: a tag v26.8.0-<n> pushes git.bitborg.se/bitborg/bitborg-keycloak:26.8.0-<n> and :sha-<short>, then cuts a release. It fails if the tag does not match the base image. The smoke test runs before the push.
  • renovate.json: no automerge. Patches open a PR. A Keycloak minor waits for dashboard approval.

Verified

  • Local build plus smoke test: /health/ready returns UP (database, initialised, cluster checks).
  • Tag check: v26.8.0-1 passes, v26.8.1-1 and v26.8.0 fail.
  • renovate-config-validator passes. shellcheck is clean.

Not verified

  • That the ci runner can pull from quay.io and publish port 9000 inside a pod. This PR's CI run is the check.

Closes #1

Builds our own Keycloak image, so production pulls nothing from `quay.io`. ## What - `Containerfile`: `quay.io/keycloak/keycloak:26.8.0`, pinned by tag and digest. `kc.sh build` with PostgreSQL, health, metrics and local caches. The runtime image starts with `start --optimized`. Theme JARs go into `/opt/keycloak/providers/` before the build (#2). - `scripts/smoke-test.sh`: starts the image against PostgreSQL in a pod and waits for `/health/ready` on port 9000. - `ci.yml`: gitleaks, build, smoke test on every pull request and on `main`. - `release.yml`: a tag `v26.8.0-<n>` pushes `git.bitborg.se/bitborg/bitborg-keycloak:26.8.0-<n>` and `:sha-<short>`, then cuts a release. It fails if the tag does not match the base image. The smoke test runs before the push. - `renovate.json`: no automerge. Patches open a PR. A Keycloak minor waits for dashboard approval. ## Verified - Local build plus smoke test: `/health/ready` returns `UP` (database, initialised, cluster checks). - Tag check: `v26.8.0-1` passes, `v26.8.1-1` and `v26.8.0` fail. - `renovate-config-validator` passes. `shellcheck` is clean. ## Not verified - That the `ci` runner can pull from `quay.io` and publish port 9000 inside a pod. This PR's CI run is the check. Closes #1
supernaut lade till 1 incheckning 2026-10-08 18:55:25 +00:00
feat: build keycloak image with an optimised build and pinned base
En del kontroller misslyckades
ci / ci (pull_request) Failing after 47s
b11e478835
Closes #1
supernaut sammanfogade incheckning 0875752130 till main 2026-10-08 18:56:01 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-keycloak!3
Ingen beskrivning angiven.