From 26fc9401e1ef9f84951d0751457a674da3b707ff Mon Sep 17 00:00:00 2001 From: Anthony Baire Date: Wed, 24 Jul 2024 11:52:40 +0200 Subject: [PATCH] assume the keycloak image is already optimized --- docker-compose/keycloak/entrypoint | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docker-compose/keycloak/entrypoint b/docker-compose/keycloak/entrypoint index 23fcf4912d..743073a0bb 100755 --- a/docker-compose/keycloak/entrypoint +++ b/docker-compose/keycloak/entrypoint @@ -66,7 +66,7 @@ auto|dev) # (the realm has to be reimported manually) mkdir -p /opt/keycloak/data/import cp /tmp/import/shanoir-ng-realm.json /opt/keycloak/data/import/ - extra+=(start --import-realm) + extra+=(start --optimized --import-realm) ;; init) # wipe out the shanoir-ng realm and recreate it @@ -76,7 +76,15 @@ never) # FIXME: should we provide a facade for these too # TODO: ensure that the realm config is up-to-date #-> add an optional data volume to store the config of the imported realm - extra+=(start) + + # NOTE: we force using the optimized image because quarkus gets + # confused by our plugin mtime being rounded (possibly somewhere + # in the docker build) + # ex: (from "kc.sh show-config") + # kc.provider.file.shanoir-ng-keycloak-auth.jar.last-modified = 1721751809614 + # vs: + # kc.provider.file.shanoir-ng-keycloak-auth.jar.last-modified = 1721751809000 + extra+=(start --optimized) ;; import)