From b8c5e461ff9fe5516bf0498dd46559e911b52ae7 Mon Sep 17 00:00:00 2001 From: mchyzer Date: Tue, 21 Jul 2020 22:07:27 -0400 Subject: [PATCH] GRP-2899: installer does not install maturity level 0 --- Dockerfile | 4 +- .../test/grouperContainerUnitTest.sh | 2 +- .../test/grouperContainerUnitTestUi.sh | 2 + .../tomee/conf/server.xml.loggingpipe | 7 +- .../tomee/conf/server.xml.loggingpipe.patch | 15 +- .../tomee/conf/server.xml.nologging | 6 +- .../tomee/conf/server.xml.nologging.patch | 12 +- ...erver.xml.disabled => server.xml.original} | 337 +++++++++--------- .../tomee/conf/server.xml.tomcatAuthn | 169 +++++++++ .../tomee/conf/server.xml.tomcatAuthn.patch | 11 + .../tomee/conf/server.xml.turnOnAjp | 2 +- .../tomee/conf/server.xml.turnOnAjp.patch | 21 +- container_files/tomee/conf/server.xml.v2_5_29 | 169 +++++++++ container_files/usr-local-bin/entrypoint.sh | 36 +- .../usr-local-bin/librarySetupFilesTomcat.sh | 36 +- 15 files changed, 610 insertions(+), 219 deletions(-) rename container_files/tomee/conf/{server.xml.disabled => server.xml.original} (85%) create mode 100644 container_files/tomee/conf/server.xml.tomcatAuthn create mode 100644 container_files/tomee/conf/server.xml.tomcatAuthn.patch create mode 100644 container_files/tomee/conf/server.xml.v2_5_29 diff --git a/Dockerfile b/Dockerfile index f64efd7c..847b1589 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN yum update -y \ RUN yum install -y wget tar unzip dos2unix patch ARG GROUPER_CONTAINER_VERSION -ENV GROUPER_VERSION=2.5.32 \ +ENV GROUPER_VERSION=2.5.33 \ GROUPER_CONTAINER_VERSION=$GROUPER_CONTAINER_VERSION # Install Corretto Java JDK @@ -32,7 +32,7 @@ RUN echo 'Installing Grouper'; \ cd /opt/grouper/$GROUPER_VERSION/ \ && $JAVA_HOME/bin/java -cp :grouperInstaller.jar edu.internet2.middleware.grouperInstaller.GrouperInstaller FROM centos:centos7 as cleanup -ENV GROUPER_VERSION=2.5.32 \ +ENV GROUPER_VERSION=2.5.33 \ TOMEE_VERSION=7.0.0 RUN mkdir -p /opt/grouper/grouperWebapp/ RUN mkdir -p /opt/tomee/ diff --git a/container_files/tier-support/test/grouperContainerUnitTest.sh b/container_files/tier-support/test/grouperContainerUnitTest.sh index 2d99f1b5..e5fc69ea 100644 --- a/container_files/tier-support/test/grouperContainerUnitTest.sh +++ b/container_files/tier-support/test/grouperContainerUnitTest.sh @@ -5,7 +5,7 @@ if [ "$#" -ne 4 ]; then exit 1 fi -expectedSuccesses=537 +expectedSuccesses=538 export containerName=$1 export imageName=$2 diff --git a/container_files/tier-support/test/grouperContainerUnitTestUi.sh b/container_files/tier-support/test/grouperContainerUnitTestUi.sh index f09d55b3..5d995515 100644 --- a/container_files/tier-support/test/grouperContainerUnitTestUi.sh +++ b/container_files/tier-support/test/grouperContainerUnitTestUi.sh @@ -56,6 +56,8 @@ testContainerUi() { assertFileNotContains /opt/tomee/conf/server.xml "AccessLogValve" + assertFileContains /opt/tomee/conf/server.xml "tomcatAuthentication" + assertEnvVarNot GROUPER_APACHE_SERVER_NAME https://a.b.c:443 assertEnvVar GROUPER_TOMCAT_LOG_ACCESS "false" assertEnvVar GROUPERSCIM_PROXY_PASS "#" diff --git a/container_files/tomee/conf/server.xml.loggingpipe b/container_files/tomee/conf/server.xml.loggingpipe index a69620d8..c14bc65f 100644 --- a/container_files/tomee/conf/server.xml.loggingpipe +++ b/container_files/tomee/conf/server.xml.loggingpipe @@ -115,7 +115,7 @@ --> - + - + diff --git a/container_files/tomee/conf/server.xml.loggingpipe.patch b/container_files/tomee/conf/server.xml.loggingpipe.patch index d39e03f3..4b5838bf 100644 --- a/container_files/tomee/conf/server.xml.loggingpipe.patch +++ b/container_files/tomee/conf/server.xml.loggingpipe.patch @@ -1,12 +1,15 @@ ---- server.xml 2020-05-18 15:49:21.192827000 +0000 -+++ server.xml.loggingpipe 2020-05-18 15:52:04.068293000 +0000 -@@ -159,6 +159,9 @@ +--- server.xml.turnOnAjp 2020-07-21 22:01:04.000000000 -0400 ++++ server.xml.loggingpipe 2020-07-21 21:59:08.000000000 -0400 +@@ -159,9 +159,9 @@ -+ ++ + - diff --git a/container_files/tomee/conf/server.xml.nologging b/container_files/tomee/conf/server.xml.nologging index 263c4c4d..03c762e1 100644 --- a/container_files/tomee/conf/server.xml.nologging +++ b/container_files/tomee/conf/server.xml.nologging @@ -115,7 +115,7 @@ --> - + + + + + diff --git a/container_files/tomee/conf/server.xml.nologging.patch b/container_files/tomee/conf/server.xml.nologging.patch index 5a7903e5..bf5bdde2 100644 --- a/container_files/tomee/conf/server.xml.nologging.patch +++ b/container_files/tomee/conf/server.xml.nologging.patch @@ -1,13 +1,15 @@ ---- server.xml 2020-05-13 19:09:12.000000000 +0000 -+++ server.xml.nologging 2020-05-17 15:36:47.361138000 +0000 -@@ -159,10 +159,6 @@ +--- server.xml.turnOnAjp 2020-07-21 22:01:04.000000000 -0400 ++++ server.xml.nologging 2020-07-21 21:59:26.000000000 -0400 +@@ -159,9 +159,9 @@ - -- ++ ++ ++ + - diff --git a/container_files/tomee/conf/server.xml.disabled b/container_files/tomee/conf/server.xml.original similarity index 85% rename from container_files/tomee/conf/server.xml.disabled rename to container_files/tomee/conf/server.xml.original index e09ea6fc..5e5765f0 100644 --- a/container_files/tomee/conf/server.xml.disabled +++ b/container_files/tomee/conf/server.xml.original @@ -1,164 +1,173 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/container_files/tomee/conf/server.xml.tomcatAuthn b/container_files/tomee/conf/server.xml.tomcatAuthn new file mode 100644 index 00000000..f1b23fce --- /dev/null +++ b/container_files/tomee/conf/server.xml.tomcatAuthn @@ -0,0 +1,169 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/container_files/tomee/conf/server.xml.tomcatAuthn.patch b/container_files/tomee/conf/server.xml.tomcatAuthn.patch new file mode 100644 index 00000000..9565be46 --- /dev/null +++ b/container_files/tomee/conf/server.xml.tomcatAuthn.patch @@ -0,0 +1,11 @@ +--- server.xml.turnOnAjp 2020-07-21 22:01:04.000000000 -0400 ++++ server.xml.tomcatAuthn 2020-07-21 22:00:02.000000000 -0400 +@@ -115,7 +115,7 @@ + --> + + +- ++ + + + - + -+ - ++ ++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/container_files/usr-local-bin/entrypoint.sh b/container_files/usr-local-bin/entrypoint.sh index 51f2dfcc..5f354349 100755 --- a/container_files/usr-local-bin/entrypoint.sh +++ b/container_files/usr-local-bin/entrypoint.sh @@ -3,21 +3,35 @@ . /usr/local/bin/library.sh prep_conf -if [ "$#" -eq 0 ]; +if [ "$#" -eq 0 ]; then - echo no component set to run - prep_finish - setupFiles - runCommand + echo no component set to run + prep_finish + setupFiles + runCommand else - if [ "$@" = "/opt/grouper/grouperWebapp/WEB-INF/bin/gsh.sh" ] - then +# echo "$@" + +# argc=$# +# argv=("$@") + + GROUPER_ENTRYPOINT_COMMAND=$1 + shift + +# for (( j=1; j