diff --git a/Dockerfile b/Dockerfile index d4c478e..bb0493e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -116,6 +116,8 @@ RUN mkdir -p $CATALINA_HOME/conf/Catalina \ ADD container_files/tomcat/jstl-1.2.jar /usr/local/tomcat/lib/ ADD container_files/idp/idp.xml /usr/local/tomcat/conf/Catalina/idp.xml ADD container_files/tomcat/server.xml /usr/local/tomcat/conf/server.xml +#ADD https://repo.maven.apache.org/maven2/jstl/jstl/1.2/jstl-1.2.jar /usr/local/tomcat/lib/ +ADD container_files/tomcat/jstl-1.2.jar /usr/local/tomcat/lib/ #use log4j for tomcat logging ADD container_files/tomcat/log4j-core-2.18.0.jar /usr/local/tomcat/bin/ diff --git a/container_files/system/startup.sh b/container_files/system/startup.sh index 7554946..82cc28b 100644 --- a/container_files/system/startup.sh +++ b/container_files/system/startup.sh @@ -60,4 +60,4 @@ sed -i -e '//d' ${IDP_LOG_CFG_FILE} #launch supervisord -/usr/bin/supervisord -c /etc/supervisor/supervisord.conf +exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf diff --git a/container_files/tomcat/log4j-api-2.17.2.jar b/container_files/tomcat/log4j-api-2.17.2.jar new file mode 100644 index 0000000..16d9061 Binary files /dev/null and b/container_files/tomcat/log4j-api-2.17.2.jar differ diff --git a/container_files/tomcat/log4j-core-2.17.2.jar b/container_files/tomcat/log4j-core-2.17.2.jar new file mode 100644 index 0000000..0fd0051 Binary files /dev/null and b/container_files/tomcat/log4j-core-2.17.2.jar differ diff --git a/container_files/tomcat/log4j-jul-2.17.2.jar b/container_files/tomcat/log4j-jul-2.17.2.jar new file mode 100644 index 0000000..59b6539 Binary files /dev/null and b/container_files/tomcat/log4j-jul-2.17.2.jar differ diff --git a/test-compose/idp/Dockerfile b/test-compose/idp/Dockerfile index d249df5..60d98e4 100644 --- a/test-compose/idp/Dockerfile +++ b/test-compose/idp/Dockerfile @@ -1,4 +1,4 @@ -FROM tier/shib-idp:latest4 +FROM i2incommon/shib-idp:latest4 # The build args below can be used at build-time to tell the build process where to find your config files. This is for a completely burned-in config. ARG TOMCFG=config/tomcat diff --git a/test-compose/idp/container_files/config/tomcat/server.xml b/test-compose/idp/container_files/config/tomcat/server.xml index d0df37e..fba3077 100644 --- a/test-compose/idp/container_files/config/tomcat/server.xml +++ b/test-compose/idp/container_files/config/tomcat/server.xml @@ -4,12 +4,22 @@ - + + + + + + + /dev/null launchflag="yes" - echo 'launching container (will take about a minute)...' - sleep 60 + echo 'launching container (will take about 2 minutes)...' + sleep 120 fi #get container ID @@ -34,6 +34,8 @@ if [ $? == '0' ]; then echo "Specified container does not appear to be running... Terminating." echo "" exit 1 + else + echo "Container is running at id: $contid" fi #get version from running status page inside container @@ -47,10 +49,12 @@ if [ -z "$(echo $shibver | xargs)" ]; then echo "Unable to determine version from a running instance... Terminating." echo "" exit 1 +else + echo "Running shibb version is: $shibver" fi #check if that version is available in the 'latest' download area (return is 0 if current, non-zero if not current) -wget -q --spider https://shibboleth.net/downloads/identity-provider/latest/shibboleth-identity-provider-${shibver}.tar.gz +wget --no-check-certificate --spider https://shibboleth.net/downloads/identity-provider/latest/shibboleth-identity-provider-${shibver}.tar.gz if [ $? == '0' ]; then echo "Running IdP version (${shibver}) is current!"