Skip to content

Commit

Permalink
Merge pull request fli-iam#2325 from fli-iam/use-keycloak-optimized
Browse files Browse the repository at this point in the history
fix keycloak startup time
  • Loading branch information
pierrehenri-dauvergne authored Jul 25, 2024
2 parents 1c6ce73 + 7659d93 commit 41eb6db
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docker-compose/keycloak/entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 41eb6db

Please sign in to comment.