From 45360a33975c3af338a6432b579a155dea04eb60 Mon Sep 17 00:00:00 2001 From: Sergey Date: Mon, 15 Jan 2024 12:12:54 +0100 Subject: [PATCH] Bump corretto version 17->21 --- Dockerfile | 6 +++--- onbuild/cacerts/1-apply.sh | 2 +- wrapper.sed | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 11ffab1..5e33e12 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -FROM amazoncorretto:17.0.5 +FROM amazoncorretto:21.0.1 LABEL maintainer="Sergey Zhukov " \ maintainer="Sergey Kondrashov " -ENV WRAPPER_VER 3.5.51 +ENV WRAPPER_VER 3.5.54 ENV WRAPPER_URL http://wrapper.tanukisoftware.com/download/${WRAPPER_VER}/wrapper-linux-x86-64-${WRAPPER_VER}.tar.gz ADD wrapper.sed / @@ -26,7 +26,7 @@ RUN mkdir -p /home/javaapp/standalone/{bin,conf,lib,logs,temp} /root/prerun; \ rm wrapper-linux-x86-64-${WRAPPER_VER}.tar.gz # Adding cacerts file from current Java disto to "conf" directory of Tomcat -RUN cp /usr/lib/jvm/java-17-amazon-corretto/lib/security/cacerts /home/javaapp/standalone/conf/truststore +RUN cp /usr/lib/jvm/java-21-amazon-corretto/lib/security/cacerts /home/javaapp/standalone/conf/truststore ADD onbuild /home/javaapp/onbuild/ ADD apply.sh / diff --git a/onbuild/cacerts/1-apply.sh b/onbuild/cacerts/1-apply.sh index 653442c..f557ffc 100644 --- a/onbuild/cacerts/1-apply.sh +++ b/onbuild/cacerts/1-apply.sh @@ -6,6 +6,6 @@ for cafile in `ls *.pem` do caalias=`echo ${cafile} | sed s/\.[^\.]*$//` - /usr/lib/jvm/java-17-amazon-corretto/bin/keytool -import -file /home/javaapp/onbuild/cacerts/$cafile -alias $caalias -keystore $1 -storepass changeit -noprompt -trustcacerts + /usr/lib/jvm/java-21-amazon-corretto/bin/keytool -import -file /home/javaapp/onbuild/cacerts/$cafile -alias $caalias -keystore $1 -storepass changeit -noprompt -trustcacerts rm ${cafile} done diff --git a/wrapper.sed b/wrapper.sed index 8088c94..a266490 100644 --- a/wrapper.sed +++ b/wrapper.sed @@ -4,7 +4,7 @@ s/@app.long.name@/javaapp/g /^APP_LONG_NAME="javaapp"/ a\ \ -export JAVA_HOME=/usr/lib/jvm/java-17-amazon-corretto\ +export JAVA_HOME=/usr/lib/jvm/java-21-amazon-corretto\ export CATALINA_HOME=/home/javaapp/standalone\ export CATALINA_BASE=$CATALINA_HOME\ export TMP_DIR=$CATALINA_HOME/temp