Skip to content

Commit

Permalink
feat: kc image build debug #2
Browse files Browse the repository at this point in the history
  • Loading branch information
NithinKuruba committed Nov 27, 2024
1 parent a38f78c commit b58f2cf
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions docker/keycloak/Dockerfile-26
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,16 @@ FROM registry.redhat.io/rhbk/keycloak-rhel9:26.0-3 as builder
# Enable health and metrics support
ENV KC_HEALTH_ENABLED=true
ENV KC_METRICS_ENABLED=true
ENV KEYCLOAK_VERSION 26.0.5

# Configure a database vendor
ENV KC_DB=postgres

COPY --from=extensions-builder /tmp/services/target/bcgov-services-1.0.0.jar /opt/keycloak/providers/

WORKDIR /opt/keycloak

RUN /opt/keycloak/bin/kc.sh build --verbose

FROM registry.redhat.io/rhbk/keycloak-rhel9:26.0-3
RUN ls -l /opt/keycloak/providers

COPY --from=builder /opt/keycloak/ /opt/keycloak/
WORKDIR /opt/keycloak

# copy the theme directory to `/opt/keycloak/themes/` for now, but we can consider to archive to be deployed later.
COPY ./extensions-26/themes/src/main/resources/theme /opt/keycloak/themes
Expand All @@ -32,5 +29,7 @@ COPY ./configuration/26/quarkus.properties /opt/keycloak/conf

COPY ./configuration/26/keycloak-default-user-profile.json /tmp

RUN /opt/keycloak/bin/kc.sh build --verbose

# change these values to point to a running postgres instance
ENTRYPOINT ["/opt/keycloak/bin/kc.sh"]

0 comments on commit b58f2cf

Please sign in to comment.