diff --git a/Dockerfile b/Dockerfile index 9471c34c..6fdf32bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,6 +39,9 @@ RUN echo 'Downloading Grouper Installer...' \ && wget -q -O /opt/grouper/$GROUPER_VERSION/grouperInstaller.jar http://software.internet2.edu/grouper/release/$GROUPER_VERSION/grouperInstaller.jar COPY container_files/grouper.installer.properties /opt/grouper/$GROUPER_VERSION +# Temporary morphString file used for building, not used in production +COPY container_files/morphString.properties /opt/grouper/$GROUPER_VERSION + RUN echo 'Installing Grouper'; \ PATH=$PATH:$JAVA_HOME/bin; \ @@ -50,7 +53,7 @@ RUN echo 'Installing Grouper'; \ FROM centos:centos7 as cleanup ENV GROUPER_VERSION=2.4.0 \ - TOMCAT_VERSION=8.5.12 \ + TOMCAT_VERSION=8.5.42 \ TOMEE_VERSION=7.0.0 COPY --from=installing /opt/grouper/$GROUPER_VERSION/grouperInstaller.jar /opt/grouper/ @@ -63,16 +66,16 @@ COPY --from=installing /opt/grouper/$GROUPER_VERSION/apache-tomcat-$TOMCAT_VERSI COPY --from=installing /opt/grouper/$GROUPER_VERSION/apache-tomee-webprofile-$TOMEE_VERSION/ /opt/tomee/ COPY --from=installing /etc/alternatives/java /etc/alternatives/java -ADD http://central.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.11.0/log4j-core-2.11.0.jar /opt/tomcat/bin -ADD http://central.maven.org/maven2/org/apache/logging/log4j/log4j-api/2.11.0/log4j-api-2.11.0.jar /opt/tomcat/bin -ADD http://central.maven.org/maven2/org/apache/logging/log4j/log4j-jul/2.11.0/log4j-jul-2.11.0.jar /opt/tomcat/bin +ADD https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.11.0/log4j-core-2.11.0.jar /opt/tomcat/bin +ADD https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-api/2.11.0/log4j-api-2.11.0.jar /opt/tomcat/bin +ADD https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-jul/2.11.0/log4j-jul-2.11.0.jar /opt/tomcat/bin -ADD http://central.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.11.0/log4j-core-2.11.0.jar /opt/tomee/bin -ADD http://central.maven.org/maven2/org/apache/logging/log4j/log4j-api/2.11.0/log4j-api-2.11.0.jar /opt/tomee/bin -ADD http://central.maven.org/maven2/org/apache/logging/log4j/log4j-jul/2.11.0/log4j-jul-2.11.0.jar /opt/tomee/bin +ADD https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.11.0/log4j-core-2.11.0.jar /opt/tomee/bin +ADD https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-api/2.11.0/log4j-api-2.11.0.jar /opt/tomee/bin +ADD https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-jul/2.11.0/log4j-jul-2.11.0.jar /opt/tomee/bin RUN cd /opt/grouper/grouper.apiBinary/; \ - rm -fr ddlScripts/ grouper.lck grouper.log grouper.script grouper.tmp/ gshAddGrouperSystemWsGroup.gsh logs/ + rm -fr ddlScripts/ grouper.properties grouper.lck grouper.log grouper.script grouper.tmp/ gshAddGrouperSystemWsGroup.gsh logs/ RUN cd /opt/tomcat/; \ chmod +r bin/log4j-*.jar; \ diff --git a/README.md b/README.md index d4b9069e..691033e4 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,12 @@ -[](https://jenkins.testbed.tier.internet2.edu/buildStatus/icon?job=docker/grouper/2.4.0-a29-u14-w3-p2-20190217) +[](https://jenkins.testbed.tier.internet2.edu/buildStatus/icon?job=docker/grouper/master) +This repository contains the source code used to create the InCommon Trusted Access Platform Grouper container. This standalone container is pushed to Dockerhub, various tags are available at the following URL: https://hub.docker.com/r/tier/grouper/tags. This repo can also be cloned and the container built locally. + +The test-compose directory contains an example Grouper environment that starts up the various Grouper components. This example demonstrates how one might go about customizing and deploying their Grouper containers, using the TIER Grouper image as a base image. If evaluating Grouper, this is a good place to start. + + # Upgrading from 2.3 to 2.4 If upgrading from Grouper version 2.3 to 2.4 and using LDAP, modifications will be needed in subject.properties and grouper-loaders.proprties. Further details about this can be found at the following URL: @@ -11,10 +16,12 @@ In particular, in subject.properties, *.param.base.value should be adjusted to o Additional upgrade information can be found at the following URL: https://spaces.at.internet2.edu/display/Grouper/v2.4+Upgrade+Instructions+from+v2.3 + + # Supported tags - latest -- patch specific tags* (i.e. 2.3.0-a97-u41-w11-p16) +- patch specific tags with date timestamp* (i.e. 2.4.0-80-u51-w10-p11-20191118) \* Patch builds are routinely produced, but not necessarily for each patch release. The following monikers are used to construct the tag name: @@ -22,6 +29,7 @@ Additional upgrade information can be found at the following URL: https://spaces - u = ui patch number - w = ws patch number - p = pspng patch number +- last field = the year, month and day the image was built # Quick reference diff --git a/container_files/grouper.installer.properties b/container_files/grouper.installer.properties index 3680125d..4e018728 100644 --- a/container_files/grouper.installer.properties +++ b/container_files/grouper.installer.properties @@ -17,8 +17,8 @@ grouperInstaller.default.installOrUpgrade = install grouperInstaller.autorun.forceInstallPatch = t grouperInstaller.autorun.installAllPatches = false grouperInstaller.autorun.installPatchesUpToACertainPatchLevel = true -# 2.4.0-a47-u25-w5-p6-20190509-rc1 -grouperInstaller.autorun.installPatchesUpToThesePatchLevels = grouper_v2_4_0_api_patch_47,grouper_v2_4_0_ui_patch_25,grouper_v2_4_0_ws_patch_5,grouper_v2_4_0_pspng_patch_6 +# 2.4.0-a93-u56-w11-p12-20200214-rc1 +grouperInstaller.autorun.installPatchesUpToThesePatchLevels = grouper_v2_4_0_api_patch_93,grouper_v2_4_0_ui_patch_56,grouper_v2_4_0_ws_patch_11,grouper_v2_4_0_pspng_patch_12 #### set this to true to try to use defaults for everything. Only things without default values will need to be set diff --git a/container_files/morphString.properties b/container_files/morphString.properties new file mode 100644 index 00000000..52479216 --- /dev/null +++ b/container_files/morphString.properties @@ -0,0 +1 @@ +encrypt.key=fh43IRJ4Nf5 diff --git a/test-compose/data/Dockerfile b/test-compose/data/Dockerfile index cbb3ca2d..e4ffb7f8 100644 --- a/test-compose/data/Dockerfile +++ b/test-compose/data/Dockerfile @@ -11,7 +11,7 @@ RUN yum install -y epel-release \ && yum clean all \ && rm -rf /var/cache/yum -RUN mysql_install_db \ +RUN mysql_install_db --force \ && chown -R mysql:mysql /var/lib/mysql/ \ && sed -i 's/^\(bind-address\s.*\)/# \1/' /etc/my.cnf \ && sed -i 's/^\(log_error\s.*\)/# \1/' /etc/my.cnf \