Skip to content

Commit

Permalink
Bump corretto version 17->21
Browse files Browse the repository at this point in the history
  • Loading branch information
sergkondr committed Jan 15, 2024
1 parent 0e05ff1 commit 45360a3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM amazoncorretto:17.0.5
FROM amazoncorretto:21.0.1

LABEL maintainer="Sergey Zhukov <sergey@jetbrains.com>" \
maintainer="Sergey Kondrashov <sergey.kondrashov@jetbrains.com>"


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 /
Expand All @@ -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 /

Expand Down
2 changes: 1 addition & 1 deletion onbuild/cacerts/1-apply.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion wrapper.sed
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 45360a3

Please sign in to comment.