From d591305629f210dc0043a719f832fedfcbeda498 Mon Sep 17 00:00:00 2001 From: dennemark Date: Sat, 11 Feb 2023 03:28:29 +0100 Subject: [PATCH] Fix db url issue (#863) Newer keycloak versions auto-build on `kc.sh start`. This leads to loss of correct usage of postgres db. If we pass `--optimized` parameter to it, keycloak will take the already build file with KC_DB=postgres and it should work. --- public/v4/apps/keycloak.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/v4/apps/keycloak.yml b/public/v4/apps/keycloak.yml index 3b9bc2b..30d2741 100644 --- a/public/v4/apps/keycloak.yml +++ b/public/v4/apps/keycloak.yml @@ -35,7 +35,7 @@ services: - ENV KC_DB_URL=jdbc:postgresql://srv-captain--$$cap_appname-db/keycloak - ENV KC_DB_USERNAME=keycloak - ENV KC_DB_PASSWORD=$$cap_pg_pass - - ENTRYPOINT ["/opt/keycloak/bin/kc.sh", "start", "--hostname=$$cap_appname.$$cap_root_domain", "--proxy=edge"] + - ENTRYPOINT ["/opt/keycloak/bin/kc.sh", "start", "--optimized --hostname=$$cap_appname.$$cap_root_domain", "--proxy=edge"] caproverOneClickApp: variables: @@ -46,8 +46,8 @@ caproverOneClickApp: validRegex: /^([^\s^\/])+$/ - id: $$cap_keycloak_version label: Keycloak Version - defaultValue: 18.0.2 - description: v18.0.2 current as of 2022-07-04. Check out their Docker page for the valid tags https://quay.io/repository/keycloak/keycloak?tab=tags + defaultValue: 20.0.3 + description: v20.0.3 current as of 2023-01-13. Check out their Docker page for the valid tags https://quay.io/repository/keycloak/keycloak?tab=tags validRegex: /^([^\s^\/])+$/ - id: $$cap_pg_pass label: Postgres Password