-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ARG VERSION=latest | ||
ARG VERSION=25.0.0 | ||
ARG BUILD_DATE=today | ||
|
||
FROM quay.io/keycloak/keycloak:${VERSION} as builder | ||
|
@@ -7,18 +7,25 @@ LABEL vendor="3sky.dev" \ | |
maintainer="Kuba Wolynko <[email protected]>" \ | ||
name="Keyclock for Aurora usage" \ | ||
arch="x86" \ | ||
build-date=${BUILD_DATE} | ||
|
||
build-date=${BUILD_DATE} | ||
|
||
# Enable health and metrics support | ||
ENV KC_HEALTH_ENABLED=true | ||
ENV KC_METRICS_ENABLED=true | ||
ENV KC_DB=postgres | ||
|
||
|
||
WORKDIR /opt/keycloak | ||
# use ALB on top, self-sign is fine here | ||
RUN keytool -genkeypair -storepass password -storetype PKCS12 -keyalg RSA -keysize 2048 -dname "CN=server" -alias server -ext "SAN:c=DNS:localhost,IP:127.0.0.1" -keystore conf/server.keystore | ||
RUN keytool -genkeypair \ | ||
-storepass password \ | ||
-storetype PKCS12 \ | ||
-keyalg RSA \ | ||
-keysize 2048 \ | ||
-dname "CN=server" \ | ||
-alias server \ | ||
-ext "SAN:c=DNS:localhost,IP:127.0.0.1" \ | ||
-keystore conf/server.keystore | ||
|
||
ADD --chmod=0666 https://github.com/awslabs/aws-advanced-jdbc-wrapper/releases/download/2.3.6/aws-advanced-jdbc-wrapper-2.3.6.jar /opt/keycloak/providers/aws-advanced-jdbc-wrapper.jar | ||
RUN /opt/keycloak/bin/kc.sh build | ||
|
||
|