diff --git a/Dockerfile b/Dockerfile index 5ca96e24..96e743d9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN yum update -y \ RUN yum install -y wget tar unzip dos2unix ARG GROUPER_CONTAINER_VERSION -ENV GROUPER_VERSION=2.5.27 \ +ENV GROUPER_VERSION=2.5.28 \ 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.27 \ +ENV GROUPER_VERSION=2.5.28 \ TOMEE_VERSION=7.0.0 RUN mkdir -p /opt/grouper/grouperWebapp/ RUN mkdir -p /opt/tomee/ diff --git a/container_files/tier-support/supervisord-hsqldb.conf b/container_files/tier-support/supervisord-hsqldb.conf index 439f68be..1ccf9adc 100644 --- a/container_files/tier-support/supervisord-hsqldb.conf +++ b/container_files/tier-support/supervisord-hsqldb.conf @@ -1,7 +1,7 @@ [program:hsqldb] user=tomcat directory=/opt/hsqldb -command=/usr/lib/jvm/java-1.8.0-amazon-corretto/bin/java -cp /opt/grouper/grouperWebapp/WEB-INF/lib/hsqldb-2.3.2.jar org.hsqldb.Server -port 9001 -database.0 file:/opt/hsqldb/grouperHSQL -dbname.0 grouper +command=/usr/lib/jvm/java-1.8.0-amazon-corretto/bin/java -cp /opt/grouper/grouperWebapp/WEB-INF/lib/hsqldb-2.3.5.jar org.hsqldb.Server -port 9001 -database.0 file:/opt/hsqldb/grouperHSQL -dbname.0 grouper stderr_logfile = /tmp/loghsqldb stderr_logfile_maxbytes=0 stdout_logfile = /tmp/loghsqldb diff --git a/container_files/usr-local-bin/library.sh b/container_files/usr-local-bin/library.sh index 3c242e1a..ab109f14 100755 --- a/container_files/usr-local-bin/library.sh +++ b/container_files/usr-local-bin/library.sh @@ -2,11 +2,6 @@ dest=/opt/grouper/grouperWebapp/WEB-INF/ -if [ -d "/opt/grouper/slashRoot" ]; then - # Copy any files into the root filesystem - rsync -l -r -v /opt/grouper/slashRoot/ / -fi - setupPipe() { if [ -e $1 ]; then rm $1 @@ -125,10 +120,14 @@ prepWS() { prepConf() { + setupLoggingPipe + setupSupervisordLogPipe + setupGrouperLogPipe + linkGrouperSecrets $dest/classes } -tomeeContextGrouperForAll() { +tomeeContextGrouperForUiOrAll() { # allow all grouper contexts to run rm /opt/tomee/conf/Catalina/localhost/grouper-ws.xml rm /opt/tomee/conf/Catalina/localhost/grouper-ws-scim.xml @@ -146,19 +145,34 @@ tomeeContextGrouperScimOnly() { rm /opt/tomee/conf/Catalina/localhost/grouper.xml sed -i "s|__THE_AJP_URL__|ajp://localhost:8009/grouper-ws-scim|g" /etc/httpd/conf.d/grouper-www.conf } -tomeeContextGrouperUiOnly() { - # only UI env, optimize the context - rm /opt/tomee/conf/Catalina/localhost/grouper-ws.xml - rm /opt/tomee/conf/Catalina/localhost/grouper-ws-scim.xml - sed -i "s|__THE_AJP_URL__|ajp://localhost:8009/grouper|g" /etc/httpd/conf.d/grouper-www.conf -} +#finishPrep() { +# +# finishPrep2 +# +# mv /opt/tomee/conf/Catalina/localhost/grouper.xml /opt/tomee/conf/Catalina/localhost/grouper2.xml +# sed -i 's|path="/grouper"|path="/grouper2"|g' /opt/tomee/conf/Catalina/localhost/grouper2.xml +# sed -i 's|ajp://localhost:8009/grouper|ajp://localhost:8009/grouper2|g' /etc/httpd/conf.d/grouper-www.conf +# sed -i 's|ProxyPass /grouper |ProxyPass /grouper2 |g' /etc/httpd/conf.d/grouper-www.conf +# sed -i 's|/grouper/|/grouper2/|g' /etc/httpd/conf.d/grouper-www.conf +# sed -i 's|/grouper/|/grouper2/|g' /etc/httpd/conf.d/ssl-enabled.conf +# # do the httpd-shibd.conf too if needed +# +#} +# +#finishPrep2() { + finishPrep() { - setupLoggingPipe - setupGrouperLogPipe - setupSupervisordLogPipe + if [ -d "/opt/grouper/slashRoot" ]; then + # Copy any files into the root filesystem + rsync -l -r -v /opt/grouper/slashRoot/ / + fi + + # tomee hsql must match the grouper one, and the version cannot be 2.3.2 since it is query bugs (unit tests fail) + rm -v /opt/tomee/lib/hsqldb-*.jar + cp -v /opt/grouper/grouperWebapp/WEB-INF/lib/hsqldb-*.jar /opt/tomee/lib/ # clear out existing supervisord config cat /opt/tier-support/supervisord-base.conf > /opt/tier-support/supervisord.conf @@ -265,7 +279,7 @@ finishPrep() { # keep it simple and use grouper if [ "$GROUPER_USE_GROUPER_CONTEXT" = "true" ] then - tomeeContextGrouperForAll + tomeeContextGrouperForUiOrAll else if [ "$GROUPER_WS" = "true" ] && [ "$GROUPER_UI" != "true" ] && [ "$GROUPER_SCIM" != "true" ] then @@ -281,18 +295,10 @@ finishPrep() { tomeeContextGrouperScimOnly else + # otherwise we are just grouper and everything (similar to above) + # note things will be available as needed + tomeeContextGrouperForUiOrAll - if [ "$GROUPER_WS" != "true" ] && [ "$GROUPER_UI" = "true" ] && [ "$GROUPER_SCIM" != "true" ] - then - - # only UI env, optimize the context - tomeeContextGrouperUiOnly - else - - # otherwise we are just grouper and everything (similar to above) - tomeeContextGrouperForAll - fi - fi fi