Skip to content

Commit eb285c4

Browse files
committed
updated release versions to the Oct 2024 CPU. JDK 17 is no longer available under no fee-term-and-conditions so it now requires users to download the binary first, as was the case before for JDK 8 and JDK 11.
Signed-off-by: Aurelio Garcia-Ribeyro <aurelio.garciaribeyro@oracle.com>
1 parent f8bd204 commit eb285c4

File tree

9 files changed

+34
-37
lines changed

9 files changed

+34
-37
lines changed

OracleJava/11/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ RUN set -eux; \
4747
if [ "$ARCH" = "x86_64" ]; \
4848
then \
4949
mv "$(ls /tmp/jdk-11*_linux-x64_bin.tar.gz)" /tmp/jdk.tar.gz ; \
50-
JAVA_SHA256=f50fdec8a48a9b360d30ecc29af36f63f04f0b70ec829d3bf821e4e361682791 ; \
50+
JAVA_SHA256=d22d0fcca761861a1eb2f5f6eb116c933354e8b1f76b3cda189c722cc0177c98 ; \
5151
else \
5252
mv "$(ls /tmp/jdk-11*_linux-aarch64_bin.tar.gz)" /tmp/jdk.tar.gz ; \
53-
JAVA_SHA256=ff0c3387f47ed2eff9fdf936952573113824fc29de463bb13a3a804cc13d2ae8 ; \
53+
JAVA_SHA256=3fc0d93f6363d32723c293ba5a9016e8ab27410351ed804020cfe71e87d3bc0a ; \
5454
fi && \
5555
echo "$JAVA_SHA256 */tmp/jdk.tar.gz" | sha256sum -c -; \
5656
mkdir -p "$JAVA_HOME"; \

OracleJava/11/Dockerfile.ol8

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ RUN set -eux; \
4646
if [ "$ARCH" = "x86_64" ]; \
4747
then \
4848
mv "$(ls /tmp/jdk-11*_linux-x64_bin.tar.gz)" /tmp/jdk.tar.gz ; \
49-
JAVA_SHA256=f50fdec8a48a9b360d30ecc29af36f63f04f0b70ec829d3bf821e4e361682791 ; \
49+
JAVA_SHA256=d22d0fcca761861a1eb2f5f6eb116c933354e8b1f76b3cda189c722cc0177c98 ; \
5050
else \
5151
mv "$(ls /tmp/jdk-11*_linux-aarch64_bin.tar.gz)" /tmp/jdk.tar.gz ; \
52-
JAVA_SHA256=ff0c3387f47ed2eff9fdf936952573113824fc29de463bb13a3a804cc13d2ae8 ; \
52+
JAVA_SHA256=3fc0d93f6363d32723c293ba5a9016e8ab27410351ed804020cfe71e87d3bc0a ; \
5353
fi && \
5454
echo "$JAVA_SHA256 */tmp/jdk.tar.gz" | sha256sum -c -; \
5555
mkdir -p "$JAVA_HOME"; \

OracleJava/17/Dockerfile

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@
88
#
99
# REQUIRED FILES TO BUILD THIS IMAGE
1010
# ----------------------------------
11-
# This dockerfile will download a copy of JDK 17 from
12-
# https://download.oracle.com/java/17/latest/jdk-17_linux-<ARCH>_bin.tar.gz
13-
#
14-
# It will use either x64 or aarch64 depending on the target platform
11+
# (1) jdk-17.XX_linux-x64_bin.tar.gz or jdk-17.XX_linux-aarch64_bin.tar.gz
12+
# Download from https://www.oracle.com/java/technologies/downloads
1513
#
1614
# HOW TO BUILD THIS IMAGE
1715
# -----------------------
16+
# Put all downloaded files in the same directory as this Dockerfile
1817
# Run:
1918
# $ docker build -t oracle/jdk:17 .
2019
#
@@ -29,30 +28,31 @@ LABEL maintainer="Aurelio Garcia-Ribeyro <aurelio.garciaribeyro@oracle.com>"
2928

3029
# Since the files are compressed as tar.gz first dnf install tar. gzip is already in oraclelinux:8
3130
RUN dnf install -y tar
32-
31+
3332
# Default to UTF-8 file.encoding
3433
ENV LANG en_US.UTF-8
3534

3635
# Environment variables for the builder image.
3736
# Required to validate that you are using the correct file
3837

39-
ENV JAVA_URL=https://download.oracle.com/java/17/latest \
40-
JAVA_HOME=/usr/java/jdk-17
38+
ENV JAVA_HOME=/usr/java/jdk-17
4139

4240
##
41+
COPY *.tar.gz /tmp/
4342
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
4443
RUN set -eux; \
4544
ARCH="$(uname -m)" && \
46-
# Java uses just x64 in the name of the tarball
4745
if [ "$ARCH" = "x86_64" ]; \
48-
then ARCH="x64"; \
46+
then \
47+
mv "$(ls /tmp/jdk-17*_linux-x64_bin.tar.gz)" /tmp/jdk.tar.gz ; \
48+
JAVA_SHA256=f7a6fdebeb11840e1f5314bc330feb75b67e52491cf39073dbf3e51e3889ff08 ; \
49+
else \
50+
mv "$(ls /tmp/jdk-17*_linux-aarch64_bin.tar.gz)" /tmp/jdk.tar.gz ; \
51+
JAVA_SHA256=277e0010e7b17583e63827f9537a153ea79cb4b6ca28d523cd8a82f14a24a769 ; \
4952
fi && \
50-
JAVA_PKG="$JAVA_URL"/jdk-17_linux-"${ARCH}"_bin.tar.gz ; \
51-
JAVA_SHA256="$(curl "$JAVA_PKG".sha256)" ; \
52-
curl --output /tmp/jdk.tgz "$JAVA_PKG" && \
53-
echo "$JAVA_SHA256" */tmp/jdk.tgz | sha256sum -c; \
53+
echo "$JAVA_SHA256 */tmp/jdk.tar.gz" | sha256sum -c -; \
5454
mkdir -p "$JAVA_HOME"; \
55-
tar --extract --file /tmp/jdk.tgz --directory "$JAVA_HOME" --strip-components 1
55+
tar --extract --file /tmp/jdk.tar.gz --directory "$JAVA_HOME" --strip-components 1
5656

5757
## Get a fresh version of OL8 for the final image
5858
FROM oraclelinux:8

OracleJava/8/jdk/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ RUN set -eux; \
4545
if [ "$ARCH" = "x86_64" ]; \
4646
then \
4747
mv "$(ls /tmp/jdk-8*-linux-x64.tar.gz)" /tmp/jdk.tar.gz ; \
48-
JAVA_SHA256=92bfdee599c334f641de2d4ae08a4a082b966cb19b88d13d48b8486f80727b58 ; \
48+
JAVA_SHA256=b396978a716b7d23ccccabfe5c47c3b75d2434d7f8f7af690bc648172382720d ; \
4949
else \
5050
mv "$(ls /tmp/jdk-8*-linux-aarch64.tar.gz)" /tmp/jdk.tar.gz ; \
51-
JAVA_SHA256=2cec03d24cf622d3c97af5fb3e6d0465de8cf7ce599b586e254bedb5ba23a9ca ; \
51+
JAVA_SHA256=e68d3e31ffcf7f05a4de65d04974843073bdff238bb6524adb272de9e616be7c ; \
5252
fi && \
5353
echo "$JAVA_SHA256 */tmp/jdk.tar.gz" | sha256sum -c -; \
5454
mkdir -p "$JAVA_HOME"; \

OracleJava/8/jdk/Dockerfile.ol8

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ RUN set -eux; \
4545
if [ "$ARCH" = "x86_64" ]; \
4646
then \
4747
mv "$(ls /tmp/jdk-8*-linux-x64.tar.gz)" /tmp/jdk.tar.gz ; \
48-
JAVA_SHA256=92bfdee599c334f641de2d4ae08a4a082b966cb19b88d13d48b8486f80727b58 ; \
48+
JAVA_SHA256=b396978a716b7d23ccccabfe5c47c3b75d2434d7f8f7af690bc648172382720d ; \
4949
else \
5050
mv "$(ls /tmp/jdk-8*-linux-aarch64.tar.gz)" /tmp/jdk.tar.gz ; \
51-
JAVA_SHA256=2cec03d24cf622d3c97af5fb3e6d0465de8cf7ce599b586e254bedb5ba23a9ca ; \
51+
JAVA_SHA256=e68d3e31ffcf7f05a4de65d04974843073bdff238bb6524adb272de9e616be7c ; \
5252
fi && \
5353
echo "$JAVA_SHA256 */tmp/jdk.tar.gz" | sha256sum -c -; \
5454
mkdir -p "$JAVA_HOME"; \

OracleJava/8/serverjre/Dockerfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,16 @@ ENV LANG en_US.UTF-8
3535

3636
# Environment variables for the builder image.
3737
# Required to validate that you are using the correct file
38-
3938

4039
ENV JAVA_HOME=/usr/java/jdk-8
4140

4241
COPY server-jre-8u*-linux-x64.tar.gz /tmp/jdk.tgz
4342
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
4443
RUN set -eux; \
45-
JAVA_SHA256=f6ad55ddd04f3a3a920312092e29be872b76104aded2cd5df51edb50c14136f2 ; \
44+
JAVA_SHA256=7c9a3a87045c226647c09bc1eb1fc832f99a9105dbc924cfeab3bf16b3504d24 ; \
4645
echo "$JAVA_SHA256 */tmp/jdk.tgz" | sha256sum -c -; \
4746
mkdir -p "$JAVA_HOME"; \
48-
tar --extract --file /tmp/jdk.tgz --directory "$JAVA_HOME" --strip-components 1;
47+
tar --extract --file /tmp/jdk.tgz --directory "$JAVA_HOME" --strip-components 1;
4948

5049
## Get a fresh version of SLIM for the final image
5150

@@ -54,7 +53,7 @@ FROM oraclelinux:7-slim
5453
# Default to UTF-8 file.encoding
5554
ENV LANG en_US.UTF-8
5655

57-
ENV JAVA_HOME=/usr/java/jdk-8
56+
ENV JAVA_HOME=/usr/java/jdk-8
5857

5958
ENV PATH $JAVA_HOME/bin:$PATH
6059

@@ -71,8 +70,7 @@ RUN yum -y update; \
7170
[ ! -e "/usr/bin/$base" ]; \
7271
alternatives --install "/usr/bin/$base" "$base" "$bin" 20000; \
7372
done; \
74-
# -Xshare:dump will create a CDS archive to improve startup in subsequent runs
73+
# -Xshare:dump will create a CDS archive to improve startup in subsequent runs
7574
# the file will be stored as /usr/java/jdk-8/jre/lib/amd64/server/classes.jsa
7675
# See https://docs.oracle.com/javase/8/docs/technotes/guides/vm/class-data-sharing.html
7776
java -Xshare:dump;
78-

OracleJava/8/serverjre/Dockerfile.ol8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ ENV JAVA_HOME=/usr/java/jdk-8
4141
COPY server-jre-8u*-linux-x64.tar.gz /tmp/jdk.tgz
4242
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
4343
RUN set -eux; \
44-
JAVA_SHA256=f6ad55ddd04f3a3a920312092e29be872b76104aded2cd5df51edb50c14136f2 ; \
44+
JAVA_SHA256=7c9a3a87045c226647c09bc1eb1fc832f99a9105dbc924cfeab3bf16b3504d24 ; \
4545
echo "$JAVA_SHA256 */tmp/jdk.tgz" | sha256sum -c -; \
4646
mkdir -p "$JAVA_HOME"; \
4747
tar --extract --file /tmp/jdk.tgz --directory "$JAVA_HOME" --strip-components 1;

OracleJava/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ Oracle Java Server JRE provides the features from Oracle Java JDK commonly requi
66

77
## Building the Oracle Java base image
88

9-
For JDK 23, 21, and 17 the required JDK binaries will be downloaded from [Oracle](https://www.oracle.com/javadownload) as part of the build using curl.
9+
For JDK 23 and 21 the required JDK binaries will be downloaded from [Oracle](https://www.oracle.com/javadownload) as part of the build using curl.
1010

11-
For JDK 11 and JDK 8 you must first download the linux x64 or linux aarch64 compressed archive (tar.gz), for Server JRE 8 you must download the linux x64 compressed archive, from [https://oracle.com/javadownload](https://www.oracle.com/javadownload) and place it in the same directory as the corresponding Dockerfile.
11+
For JDK 17, JDK 11, and JDK 8 you must first download the linux x64 or linux aarch64 compressed archive (tar.gz), for Server JRE 8 you must download the linux x64 compressed archive, from [https://oracle.com/javadownload](https://www.oracle.com/javadownload) and place it in the same directory as the corresponding Dockerfile.
1212

13-
e.g. for JDK 11 download jdk-11[X]_linux-x64_bin.tar.gz into OracleJava/11, for Server JRE 8 download server-jre-8uXXX-linux-x64.tar.gz into OracleJava/8/serverjre
13+
e.g. for JDK 17 download jdk-17[X]_linux-x64_bin.tar.gz into OracleJava/17, for Server JRE 8 download server-jre-8uXXX-linux-x64.tar.gz into OracleJava/8/serverjre
1414

1515
To build the container image run `docker build`. Tag it with the correct version number.
1616

@@ -65,9 +65,9 @@ The script `build.sh` will tag the images it creates with the JDK version, and w
6565

6666
## Licenses
6767

68-
JDK 23, 21, and 17 are downloaded, as part of the build process, from the [Oracle Website](https://www.oracle.com/javadownload) under the [Oracle No-Fee Terms and Conditions (NFTC)](https://java.com/freeuselicense).
68+
JDK 23 and 21 are downloaded, as part of the build process, from the [Oracle Website](https://www.oracle.com/javadownload) under the [Oracle No-Fee Terms and Conditions (NFTC)](https://java.com/freeuselicense).
6969

70-
For building JDK 11, JDK 8, and Server JRE 8 you must first download the corresponding Java Runtime from the [Oracle Website](https://www.oracle.com/javadownload) and accept the license indicated on that page.
70+
For building JDK17, JDK 11, JDK 8, and Server JRE 8 you must first download the corresponding Java Runtime from the [Oracle Website](https://www.oracle.com/javadownload) and accept the license indicated on that page.
7171

7272
All scripts and files hosted in this project and GitHub [`docker/OracleJava`](./) repository, required to build the container images are, unless otherwise noted, released under the [UPL 1.0](https://oss.oracle.com/licenses/upl/) license.
7373

OracleOpenJDK/23/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@ FROM oraclelinux:9
2525

2626
LABEL maintainer="Aurelio Garcia-Ribeyro <aurelio.garciaribeyro@oracle.com>"
2727

28-
ENV JAVA_URL=https://download.java.net/java/GA/jdk23/3c5b90190c68498b986a97f276efd28a/37/GPL \
28+
ENV JAVA_URL=https://download.java.net/java/GA/jdk23.0.1/c28985cbf10d4e648e4004050f8781aa/11/GPL \
2929
JAVA_HOME=/usr/java/jdk-23 \
3030
LANG=en_US.UTF-8
31-
3231

3332
# If you need the Java Version you can read it from the release file with
3433
#JAVA_VERSION=$(sed -n '/^JAVA_VERSION="/{s///;s/"//;p;}' "$JAVA_HOME"/release);
@@ -50,7 +49,7 @@ RUN set -eux; \
5049
if [ "$ARCH" = "x86_64" ]; \
5150
then ARCH="x64"; \
5251
fi && \
53-
JAVA_PKG="$JAVA_URL"/openjdk-23_linux-"${ARCH}"_bin.tar.gz ; \
52+
JAVA_PKG="$JAVA_URL"/openjdk-23.0.1_linux-"${ARCH}"_bin.tar.gz ; \
5453
JAVA_SHA256="$(curl "$JAVA_PKG".sha256)" ; \
5554
curl --output /tmp/jdk.tgz "$JAVA_PKG" && \
5655
echo "$JAVA_SHA256" */tmp/jdk.tgz | sha256sum -c -; \

0 commit comments

Comments
 (0)