Skip to content
Merged
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
18 changes: 9 additions & 9 deletions OracleJava/23/Dockerfile.ol9 → OracleJava/24/Dockerfile.ol9
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# Copyright (c) 2022, 2024 Oracle and/or its affiliates.
# Copyright (c) 2022, 2025 Oracle and/or its affiliates.
#
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
#
# ORACLE DOCKERFILES PROJECT
# --------------------------
# This is the Dockerfile for Oracle JDK 23 on Oracle Linux 9
# This is the Dockerfile for Oracle JDK 24 on Oracle Linux 9
#
# REQUIRED FILES TO BUILD THIS IMAGE
# ----------------------------------
# This dockerfile will download a copy of JDK 23 from
# https://download.oracle.com/java/23/latest/jdk-23_linux-<ARCH>_bin.tar.gz
# This dockerfile will download a copy of JDK 24 from
# https://download.oracle.com/java/24/latest/jdk-24_linux-<ARCH>_bin.tar.gz
#
# It will use either x64 or aarch64 depending on the target platform
#
# HOW TO BUILD THIS IMAGE
# -----------------------
# Run:
# $ docker build --file Dockerfile.ol9 --tag oracle/jdk:23 .
# $ docker build --file Dockerfile.ol9 --tag oracle/jdk:24 .
#
# This command is already scripted in build.sh so you can alternatively run
# $ bash build.sh
Expand All @@ -37,8 +37,8 @@ ENV LANG en_US.UTF-8
# Environment variables for the builder image.
# Required to validate that you are using the correct file

ENV JAVA_URL=https://download.oracle.com/java/23/latest \
JAVA_HOME=/usr/java/jdk-23
ENV JAVA_URL=https://download.oracle.com/java/24/latest \
JAVA_HOME=/usr/java/jdk-24

##
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
Expand All @@ -48,7 +48,7 @@ RUN set -eux; \
if [ "$ARCH" = "x86_64" ]; \
then ARCH="x64"; \
fi && \
JAVA_PKG="$JAVA_URL"/jdk-23_linux-"${ARCH}"_bin.tar.gz ; \
JAVA_PKG="$JAVA_URL"/jdk-24_linux-"${ARCH}"_bin.tar.gz ; \
JAVA_SHA256=$(curl "$JAVA_PKG".sha256) ; \
curl --output /tmp/jdk.tgz "$JAVA_PKG" && \
echo "$JAVA_SHA256" */tmp/jdk.tgz | sha256sum -c; \
Expand All @@ -60,7 +60,7 @@ FROM oraclelinux:9

# Default to UTF-8 file.encoding
ENV LANG en_US.UTF-8
ENV JAVA_HOME=/usr/java/jdk-23
ENV JAVA_HOME=/usr/java/jdk-24
ENV PATH $JAVA_HOME/bin:$PATH

# If you need the Java Version you can read it from the release file with
Expand Down
4 changes: 2 additions & 2 deletions OracleJava/23/build.sh → OracleJava/24/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
#
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.

echo "Building Oracle JDK 23 on Oracle Linux 9"
docker build --file Dockerfile.ol9 --tag oracle/jdk:23-ol9 .
echo "Building Oracle JDK 24 on Oracle Linux 9"
docker build --file Dockerfile.ol9 --tag oracle/jdk:24-ol9 .
18 changes: 9 additions & 9 deletions OracleJava/README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Oracle Java in Containers

This repository contains sample container configurations to facilitate installation and environment setup for DevOps users. This project provides container images based on Oracle Linux for JDK versions 23, 21, 17, 11 and 8 as well as Server JRE 8.
This repository contains sample container configurations to facilitate installation and environment setup for DevOps users. This project provides container images based on Oracle Linux for JDK versions 24, 21, 17, 11 and 8 as well as Server JRE 8.

Oracle Java Server JRE provides the features from Oracle Java JDK commonly required for server-side applications (i.e. Running a Java EE application server). For more information about Server JRE, visit the [Understanding the Server JRE blog entry](https://blogs.oracle.com/java-platform-group/understanding-the-server-jre) from the Java Product Management team.

## Building the Oracle Java base image

For the most recent JDK Releases ( JDK 23 and 21), offered under the [Oracle No-Fee Terms and Conditions](https://www.java.com/freeuselicense) (NFTC), the required JDK binaries will be downloaded from [Oracle](https://www.oracle.com/javadownload) as part of the build using curl.
For the most recent JDK Releases ( JDK 24 and 21), offered under the [Oracle No-Fee Terms and Conditions](https://www.java.com/freeuselicense) (NFTC), the required JDK binaries will be downloaded from [Oracle](https://www.oracle.com/javadownload) as part of the build using curl.

e.g., To build the JDK 23 container image run:
e.g., To build the JDK 24 container image run:

```bash
cd ../OracleJava/23
docker build --file Dockerfile.ol9 --tag oracle/jdk:23 .
cd ../OracleJava/24
docker build --file Dockerfile.ol9 --tag oracle/jdk:24 .
```

Updates to prior LTS releases: JDK 17, JDK 11, JDK 8, and Server JRE 8 are offered under the [Oracle Technology Network License Agreement for Oracle Java SE](https://www.java.com/otnlicense). Users must accept the license terms, generate a download token, and provide it, as well as the OCI region for the token, as build arguments. Token generation is documented on [https://docs.cloud.oracle.com/en-us/iaas/jms/doc/java-download.html](https://docs.cloud.oracle.com/en-us/iaas/jms/doc/java-download.html).
Expand All @@ -31,15 +31,15 @@ cd ../OracleJava/8/serverjre
docker build --file Dockerfile.ol8 --tag oracle/serverjre:8 --build-arg JDK8_TOKEN=<$token> --build-arg OCI_REGION=<$region> .
```

For the NFTC releases (JDK 23 and 21) the right command is already scripted in `build.sh` so you can alternatively run:
For the NFTC releases (JDK 24 and 21) the right command is already scripted in `build.sh` so you can alternatively run:

```bash
bash build.sh
```

### Parent image OS version

The Oracle Java image for JDK 23 uses `oraclelinux:9` as the parent image.
The Oracle Java image for JDK 24 uses `oraclelinux:9` as the parent image.

The Oracle Java image for JDK 21 and earlier use `oraclelinux:8` as the parent image.

Expand All @@ -55,12 +55,12 @@ Server JRE is offered only for x86-64 systems, all other images are offered for

## Licenses

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).
JDK 24 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).

The JDK 17, JDK 11, JDK 8, and Server JRE 8 dockerfiles use Java Runtimes under the [Oracle Technology Network License Agreement for Oracle Java SE](https://www.java.com/otnlicense)

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.

## Customer Support

Oracle offers support for JDK 23, JDK 21, JDK 17, JDK 11, and JDK 8 (JDK and Server JRE) when running on certified operating systems in a container. For additional details on the JDK Certified System Configurations, please refer to the [Oracle Java SE Certified System Configuration Pages](https://www.oracle.com/technetwork/java/javaseproducts/documentation/index.html#sysconfig).
Oracle offers support for JDK 24, JDK 21, JDK 17, JDK 11, and JDK 8 (JDK and Server JRE) when running on certified operating systems in a container. For additional details on the JDK Certified System Configurations, please refer to the [Oracle Java SE Certified System Configuration Pages](https://www.oracle.com/technetwork/java/javaseproducts/documentation/index.html#sysconfig).
8 changes: 0 additions & 8 deletions OracleOpenJDK/23/build.sh

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# Copyright (c) 2022, 2024 Oracle and/or its affiliates.
# Copyright (c) 2022, 2025 Oracle and/or its affiliates.
#
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
#
# ORACLE DOCKERFILES PROJECT
# --------------------------
# This is the Dockerfile for Oracle OpenJDK 23 on Oracle Linux 9
# This is the Dockerfile for Oracle OpenJDK 24 on Oracle Linux 9
#
# REQUIRED FILES TO BUILD THIS IMAGE
# ----------------------------------
#
# (1) openjdk-23.xx_linux-x64_bin.tar.gz
# Downloaded from https://jdk.java.net/23/
# (1) openjdk-24.xx_linux-x64_bin.tar.gz
# Downloaded from https://jdk.java.net/24/
#
# HOW TO BUILD THIS IMAGE
# -----------------------
# Run:
# $ docker build --file Dockerfile.ol9 --tag oracle/openjdk:23 .
# $ docker build --file Dockerfile.ol9 --tag oracle/openjdk:24 .
#
# This command is already scripted in build.sh so you can alternatively run
# $ bash build.sh
Expand All @@ -25,8 +25,8 @@ FROM oraclelinux:9

LABEL maintainer="Aurelio Garcia-Ribeyro <[email protected]>"

ENV JAVA_URL=https://download.java.net/java/GA/jdk23.0.2/6da2a6609d6e406f85c491fcb119101b/7/GPL \
JAVA_HOME=/usr/java/jdk-23 \
ENV JAVA_URL=https://download.java.net/java/GA/jdk24/1f9ff9062db4449d8ca828c504ffae90/36/GPL \
JAVA_HOME=/usr/java/jdk-24 \
LANG=en_US.UTF-8

# If you need the Java Version you can read it from the release file with
Expand All @@ -49,7 +49,7 @@ RUN set -eux; \
if [ "$ARCH" = "x86_64" ]; \
then ARCH="x64"; \
fi && \
JAVA_PKG="$JAVA_URL"/openjdk-23.0.2_linux-"${ARCH}"_bin.tar.gz ; \
JAVA_PKG="$JAVA_URL"/openjdk-24_linux-"${ARCH}"_bin.tar.gz ; \
JAVA_SHA256="$(curl "$JAVA_PKG".sha256)" ; \
curl --output /tmp/jdk.tgz "$JAVA_PKG" && \
echo "$JAVA_SHA256" */tmp/jdk.tgz | sha256sum -c -; \
Expand Down
8 changes: 8 additions & 0 deletions OracleOpenJDK/24/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

# Copyright (c) 2023, 2025 Oracle and/or its affiliates.
#
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.

echo "Building OpenJDK 24 on Oracle Linux 9"
docker build --file Dockerfile.ol9 --tag oracle/openjdk:24-ol9 .
8 changes: 4 additions & 4 deletions OracleOpenJDK/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ This repository contains sample container configurations to facilitate installat

Navigate to the folder containing the `Dockerfile` and run `docker build`, tagging the image with the version number:

e.g. for OpenJDK 23 run
e.g. for OpenJDK 24 run

```bash
cd ../OracleOpenJDK/23
docker build --file Dockerfile.ol9 --tag oracle/openjdk:23 .
cd ../OracleOpenJDK/24
docker build --file Dockerfile.ol9 --tag oracle/openjdk:24 .
```

This command is already scripted in `build.sh` so you can alternatively run:
Expand All @@ -21,7 +21,7 @@ bash build.sh

### Parent image OS version

The Oracle Java images for OpenJDK 23 uses `oraclelinux:9` as the default parent image.
The Oracle Java images for OpenJDK 24 uses `oraclelinux:9` as the default parent image.

## License

Expand Down