Skip to content

Commit

Permalink
Merge branch 'latest4' into 4.3.2_20240321_rocky8_multiarch
Browse files Browse the repository at this point in the history
  • Loading branch information
pcaskey authored Mar 21, 2024
2 parents d8d2c79 + c6e6f7a commit 0062a73
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 11 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
2 changes: 1 addition & 1 deletion container_files/system/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ sed -i -e '/<rollingPolicy/,/<\/rollingPolicy>/d' ${IDP_LOG_CFG_FILE}


#launch supervisord
/usr/bin/supervisord -c /etc/supervisor/supervisord.conf
exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
Binary file added container_files/tomcat/log4j-api-2.17.2.jar
Binary file not shown.
Binary file added container_files/tomcat/log4j-core-2.17.2.jar
Binary file not shown.
Binary file added container_files/tomcat/log4j-jul-2.17.2.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion test-compose/idp/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
22 changes: 16 additions & 6 deletions test-compose/idp/container_files/config/tomcat/server.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,22 @@
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />

<Service name="Catalina">
<Connector
protocol="org.apache.coyote.http11.Http11NioProtocol"
port="443" maxThreads="200"
scheme="https" secure="true" SSLEnabled="true"
keystoreFile="/opt/certs/keystore.jks" keystorePass="e68cb9bc-bb21-4319-a664-1f755ad8b47c"
clientAuth="false" sslProtocol="TLS"/>
<Connector
protocol="org.apache.coyote.http11.Http11NioProtocol"
port="443" maxThreads="200"
scheme="https" secure="true" SSLEnabled="true">
<SSLHostConfig
ciphers="ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384"
disableSessionTickets="true"
honorCipherOrder="false"
protocols="TLSv1.2,TLSv1.3">
<Certificate
certificateKeystoreFile="/opt/certs/keystore.jks"
certificateKeystorePassword="e68cb9bc-bb21-4319-a664-1f755ad8b47c" />
</SSLHostConfig>
<UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
</Connector>

<Engine name="Catalina" defaultHost="localhost">

<Host name="localhost" appBase="webapps"
Expand Down
10 changes: 7 additions & 3 deletions tests/checkidpver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ if [ $? == '0' ]; then
if [ $? -ne '0' ]; then
docker run -d $1 &>/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
Expand All @@ -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
Expand All @@ -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!"
Expand Down

0 comments on commit 0062a73

Please sign in to comment.