Skip to content

Commit a8675e4

Browse files
committedDec 19, 2022
updating keycloak version
1 parent 0525b0c commit a8675e4

5 files changed

+47
-11
lines changed
 

‎.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22
/scratch/
33
/adl-lem/resolver/package-lock.json
44
/adl-lem/mom-helper
5+
6+
global.env
7+
**/local.env
8+
**/.env

‎adl-auth/docker-compose.yml

+13-8
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,19 @@ services:
5858
- postgres:docker_postgres
5959
environment:
6060
PROXY_ADDRESS_FORWARDING: "true"
61-
DB_VENDOR: POSTGRES
62-
DB_ADDR: postgres
63-
DB_DATABASE: ${POSTGRES_DB}
64-
DB_SCHEMA: public
65-
DB_USER: ${POSTGRES_USER}
66-
DB_PASSWORD: ${POSTGRES_PASSWORD}
67-
KEYCLOAK_USER: ${KEYCLOAK_USER}
68-
KEYCLOAK_PASSWORD: ${KEYCLOAK_PASSWORD}
61+
KEYCLOAK_ADMIN: ${KEYCLOAK_USER}
62+
KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_PASSWORD}
63+
KC_DB: postgres
64+
KC_DB_URL: jdbc:postgresql://postgres:5432/${POSTGRES_DB}
65+
KC_DB_USERNAME: ${POSTGRES_USER}
66+
KC_DB_PASSWORD: ${POSTGRES_PASSWORD}
67+
KC_DB_SCHEMA: public
68+
KC_HOSTNAME: ${HOSTNAME}
69+
KC_HOSTNAME_STRICT: "false"
70+
KC_HTTP_ENABLED: "true"
71+
KC_METRICS_ENABLED: "true"
72+
KC_PROXY: "edge"
73+
# KC_FEATURES: token-exchange
6974
networks:
7075
- public
7176

‎adl-auth/keycloak/Dockerfile

+30-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,31 @@
1-
FROM quay.io/keycloak/keycloak:16.1.1
1+
ARG KC_VERSION=20.0
22

3-
COPY themes/. /opt/jboss/keycloak/themes/
4-
COPY deployments/. /opt/jboss/keycloak/standalone/deployments/
3+
# Builder Setup
4+
#
5+
# The newer Keycloak images (17+) recommend building Keycloak within
6+
# a separate image and then moving the built service into a runner image.
7+
# This removes the lengthy startup process that Keycloak has famously
8+
# needed to perform after each restart, but does add an additional step
9+
# to the Dockerfile.
10+
#
11+
FROM quay.io/keycloak/keycloak:${KC_VERSION} as builder
12+
13+
RUN /opt/keycloak/bin/kc.sh build
14+
15+
# Runner Setup
16+
#
17+
# Once the image is built, we can drop in the themes and other plugins
18+
# directly into this image.
19+
#
20+
# Note that the /deployments folder has been renamed to /providers
21+
#
22+
FROM quay.io/keycloak/keycloak:${KC_VERSION}
23+
24+
COPY --from=builder /opt/keycloak/lib/quarkus/ /opt/keycloak/lib/quarkus/
25+
COPY themes/. /opt/keycloak/themes/
26+
COPY deployments/. /opt/keycloak/providers/
27+
28+
WORKDIR /opt/keycloak
29+
30+
31+
ENTRYPOINT ["/opt/keycloak/bin/kc.sh", "start", "--http-relative-path", "/auth"]
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.