From 8476611a58d27efa3b65651aa678a238ee01b335 Mon Sep 17 00:00:00 2001 From: Hans Keeler Date: Fri, 15 Sep 2017 03:16:25 -0400 Subject: [PATCH] Cleanup keycloak libaries - Add CentOS CR yum repo to get latest updates - Remove unneeded augeus yum packages - Remove .m2 directory leftover from building institution to email domain validation Java library. --- keycloak/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/keycloak/Dockerfile b/keycloak/Dockerfile index 414d6f2..0284cb2 100644 --- a/keycloak/Dockerfile +++ b/keycloak/Dockerfile @@ -38,7 +38,10 @@ USER root RUN chmod -R a+w ${KC_SPI_DEST} && chown -R jboss:jboss /opt/jboss # Get the latest yum packages, and cleanup packages from parent images -RUN yum -y update && yum -y clean all +RUN yum-config-manager --enable cr && \ + yum -y erase augeas augeas-libs && \ + yum -y update && \ + yum -y clean all USER jboss @@ -49,6 +52,7 @@ RUN echo 'Keycloak SPI build starting...' && \ mvn --quiet clean install && \ mkdir /opt/jboss/keycloak/providers && \ cp target/keycloak-authenticator-hmda-${KC_LIB_VER}.jar /opt/jboss/keycloak/providers && \ + rm -rf /opt/jboss/.m2 && \ echo 'Keycloak SPIs build successful!' EXPOSE 8080