-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IT-515: First version of keycloak custom image
- Loading branch information
1 parent
4f18ff3
commit 3e7c878
Showing
54 changed files
with
8 additions
and
6,073 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,5 +1,5 @@ | ||
#!/bin/bash | ||
|
||
TMP="$(cat Dockerfile.keycloak Dockerfile.redhat-sso | sha256sum --zero | cut -d' ' -f1)" | ||
TMP="$(cat Dockerfile.keycloak | sha256sum --zero | cut -d' ' -f1)" | ||
TMP+="${PPL_COMMIT_ID}_${ENTANDO_PRJ_VERSION}" | ||
echo "$TMP" |
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,39 +1,11 @@ | ||
FROM quay.io/keycloak/keycloak:18.0.2-legacy | ||
LABEL MAINTAINER="Entando <[email protected]>" | ||
ARG VERSION | ||
LABEL name="Entando Keycloak" \ | ||
vendor="Entando" \ | ||
version="v${VERSION}" \ | ||
release="7" \ | ||
summary="Keycloak with Entando's themes and extensions." \ | ||
description="This is container hosts Keycloak along with themes created for Entando." | ||
COPY LICENSE /licences/entando-lgpl.txt | ||
FROM quay.io/keycloak/keycloak:23.0.3 as builder | ||
|
||
COPY themes /opt/jboss/keycloak/themes | ||
COPY --chown=jboss:root cli /opt/jboss/tools/cli/ | ||
COPY --chown=jboss:root jboss-tools/standalone-configuration.cli /opt/jboss/tools/cli/standalone-configuration.cli | ||
COPY --chown=jboss:root jboss-tools/standalone-ha-configuration.cli /opt/jboss/tools/cli/standalone-ha-configuration.cli | ||
RUN /opt/keycloak/bin/kc.sh build | ||
|
||
ARG ORACLE_JDBC_DRIVER_VERSION=23.2.0.0 | ||
RUN export KEYCLOAK_HTTP_PORT=8080 && \ | ||
cd /opt/jboss/keycloak/modules/system/layers/base/com/oracle/jdbc/main/ && \ | ||
mkdir driver && \ | ||
curl https://repo1.maven.org/maven2/com/oracle/database/jdbc/ojdbc8/${ORACLE_JDBC_DRIVER_VERSION}/ojdbc8-${ORACLE_JDBC_DRIVER_VERSION}.jar -o driver/ojdbc.jar | ||
FROM quay.io/keycloak/keycloak:23.0.3 | ||
#COPY themes/entando /opt/keycloak/themes/entando | ||
COPY --from=builder /opt/keycloak/ /opt/keycloak/ | ||
|
||
ENV KEYCLOAK_DEFAULT_THEME="entando" \ | ||
KEYCLOAK_HOME="/opt/jboss/keycloak" \ | ||
HOME="/home/jboss" | ||
|
||
ENV JGROUPS_DISCOVERY_PROTOCOL="dns.DNS_PING" \ | ||
JGROUPS_DISCOVERY_PROPERTIES="dns_query=keycloak-headless" \ | ||
CACHE_OWNERS_COUNT="2" \ | ||
CACHE_OWNERS_AUTH_SESSIONS_COUNT="2" | ||
#ENV KC_SPI_THEME_DEFAULT="entando" | ||
|
||
USER root | ||
RUN mkdir -p "$HOME"; \ | ||
chown jboss:jboss "$HOME"; \ | ||
chmod g+rwx "$HOME" | ||
USER jboss | ||
|
||
EXPOSE 8080 | ||
CMD ["-b", "0.0.0.0"] | ||
ENTRYPOINT ["/opt/keycloak/bin/kc.sh"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.