Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ubuntu/standard/7.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,10 @@ RUN goenv install $GOLANG_24_VERSION \
#**************** END GOLANG *******************************

#**************** JAVA ****************************************************
ENV JAVA_21_HOME="/usr/lib/jvm/java-21-amazon-corretto" \
ENV JAVA_25_HOME="/usr/lib/jvm/java-25-amazon-corretto" \
JDK_25_HOME="/usr/lib/jvm/java-25-amazon-corretto" \
JRE_25_HOME="/usr/lib/jvm/java-25-amazon-corretto" \
JAVA_21_HOME="/usr/lib/jvm/java-21-amazon-corretto" \
JDK_21_HOME="/usr/lib/jvm/java-21-amazon-corretto" \
JRE_21_HOME="/usr/lib/jvm/java-21-amazon-corretto" \
JAVA_17_HOME="/usr/lib/jvm/java-17-amazon-corretto" \
Expand Down Expand Up @@ -537,6 +540,7 @@ RUN set -ex \
&& wget -O - https://apt.corretto.aws/corretto.key | sudo gpg --dearmor -o /usr/share/keyrings/corretto-keyring.gpg \
&& echo "deb [signed-by=/usr/share/keyrings/corretto-keyring.gpg] https://apt.corretto.aws stable main" | sudo tee /etc/apt/sources.list.d/corretto.list \
&& apt-get update \
&& apt-get install -y -qq java-25-amazon-corretto-jdk \
&& apt-get install -y -qq java-21-amazon-corretto-jdk \
&& apt-get install -y -qq java-17-amazon-corretto-jdk \
&& apt-get install -y -qq java-11-amazon-corretto-jdk \
Expand Down
16 changes: 16 additions & 0 deletions ubuntu/standard/7.0/runtimes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@ version: 0.1
runtimes:
java:
versions:
corretto25:
commands:
- echo "Installing Corretto(OpenJDK) version 25 ..."
- export JAVA_HOME="$JAVA_25_HOME"
- export JRE_HOME="$JRE_25_HOME"
- export JDK_HOME="$JDK_25_HOME"
- |-
for tool_path in "$JAVA_HOME"/bin/*;
do tool=`basename "$tool_path"`;
if [ $tool != 'java-rmi.cgi' ];
then
rm -f /usr/bin/$tool /var/lib/alternatives/$tool;
update-alternatives --install /usr/bin/$tool $tool $tool_path 20000;
update-alternatives --set $tool $tool_path;
fi;
done
corretto21:
commands:
- echo "Installing Corretto(OpenJDK) version 21 ..."
Expand Down