-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: create a keycloak 24 benchmark image (#426)
* chore: create a keycloak 24 benchmark image * chore: update benchmark test documentation * chore: point the benchmark builder back at 26 * chore: add 4th test to docs * chore: add 4th test to docs
- Loading branch information
1 parent
1deeae7
commit 3106932
Showing
4 changed files
with
65 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
FROM maven:3.8.5-openjdk-17-slim AS extensions-builder | ||
|
||
COPY ./extensions-24 /tmp/ | ||
WORKDIR /tmp/ | ||
RUN mvn -B clean package --file pom.xml | ||
|
||
FROM registry.redhat.io/rhbk/keycloak-rhel9:24-17 as builder | ||
|
||
# Enable health and metrics support | ||
ENV KC_HEALTH_ENABLED=true | ||
ENV KC_METRICS_ENABLED=true | ||
|
||
# Configure a database vendor | ||
ENV KC_DB=postgres | ||
|
||
# un-comment when dataset required for loadtests | ||
COPY ./dataset-providers/keycloak-benchmark-dataset-0.15-SNAPSHOT.jar /opt/keycloak/providers | ||
|
||
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 | ||
|
||
FROM registry.redhat.io/rhbk/keycloak-rhel9:24-17 | ||
|
||
COPY --from=builder /opt/keycloak/ /opt/keycloak/ | ||
|
||
# copy the theme directory to `/opt/keycloak/themes/` for now, but we can consider to archive to be deployed later. | ||
COPY ./extensions-24/themes/src/main/resources/theme /opt/keycloak/themes | ||
|
||
COPY ./configuration/24/keycloak.conf /opt/keycloak/conf | ||
|
||
COPY ./configuration/24/quarkus.properties /opt/keycloak/conf | ||
|
||
COPY ./configuration/24/keycloak-default-user-profile.json /tmp | ||
|
||
# change these values to point to a running postgres instance | ||
ENTRYPOINT ["/opt/keycloak/bin/kc.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters