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
16 changes: 8 additions & 8 deletions OracleJava/26/Dockerfile.ol9 → OracleJava/27/Dockerfile.ol9
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
#
# ORACLE DOCKERFILES PROJECT
# --------------------------
# This is the Dockerfile for Oracle JDK 26 on Oracle Linux 9
# This is the Dockerfile for Oracle JDK 27 on Oracle Linux 9
#
# REQUIRED FILES TO BUILD THIS IMAGE
# ----------------------------------
# This dockerfile will download a copy of JDK 26 from
# https://download.oracle.com/java/26/latest/jdk-26_linux-<ARCH>_bin.tar.gz
# This dockerfile will download a copy of JDK 27 from
# https://download.oracle.com/java/27/latest/jdk-27_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:26 .
# $ docker build --file Dockerfile.ol9 --tag oracle/jdk:27 .
#
# 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/26/latest \
JAVA_HOME=/usr/java/jdk-26
ENV JAVA_URL=https://download.oracle.com/java/27/latest \
JAVA_HOME=/usr/java/jdk-27

##
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-26_linux-"${ARCH}"_bin.tar.gz ; \
JAVA_PKG="$JAVA_URL"/jdk-27_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-26
ENV JAVA_HOME=/usr/java/jdk-27
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/26/build.sh → OracleJava/27/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 26 on Oracle Linux 9"
docker build --file Dockerfile.ol9 --tag oracle/jdk:26-ol9 .
echo "Building Oracle JDK 27 on Oracle Linux 9"
docker build --file Dockerfile.ol9 --tag oracle/jdk:27-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 26, 25, 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 27, 25, 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 26, 25, 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 27, 25, 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 26 container image run:
e.g., To build the JDK 27 container image run:

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

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 a build argument. 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> .
```

For the NFTC releases (JDK 26, 25, and 21), the right command is already scripted in `build.sh` so you can alternatively run:
For the NFTC releases (JDK 27, 25, 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 images for JDK 26 and JDK 25 use `oraclelinux:9` as the parent image.
The Oracle Java images for JDK 27 and JDK 25 use `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 26, 25, 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 27, 25, 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 in the 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 26, JDK 25, 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 27, JDK 25, 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).
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
#
# ORACLE DOCKERFILES PROJECT
# --------------------------
# This is the Dockerfile for Oracle OpenJDK 26 on Oracle Linux 9
# This is the Dockerfile for Oracle OpenJDK 27 on Oracle Linux 9
#
# REQUIRED FILES TO BUILD THIS IMAGE
# ----------------------------------
#
# (1) openjdk-26.xx_linux-x64_bin.tar.gz
# Downloaded from https://jdk.java.net/26/
# (1) openjdk-27.xx_linux-x64_bin.tar.gz
# Downloaded from https://jdk.java.net/27/
#
# HOW TO BUILD THIS IMAGE
# -----------------------
# Run:
# $ docker build --file Dockerfile.ol9 --tag oracle/openjdk:26 .
# $ docker build --file Dockerfile.ol9 --tag oracle/openjdk:27 .
#
# 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 <aurelio.garciaribeyro@oracle.com>"

ENV JAVA_URL=https://download.java.net/java/GA/jdk26.0.2.1/3b8e6c7ec6274148a7aa15e7e7dfb53c/1/GPL \
JAVA_HOME=/usr/java/jdk-26 \
ENV JAVA_URL=https://download.java.net/java/GA/jdk27/55ce5470a6294008af0057ff4626d0e5/35/GPL \
JAVA_HOME=/usr/java/jdk-27 \
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-26.0.2.1_linux-"${ARCH}"_bin.tar.gz ; \
JAVA_PKG="$JAVA_URL"/openjdk-27_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
4 changes: 2 additions & 2 deletions OracleOpenJDK/26/build.sh → OracleOpenJDK/27/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 OpenJDK 26 on Oracle Linux 9"
docker build --file Dockerfile.ol9 --tag oracle/openjdk:26-ol9 .
echo "Building OpenJDK 27 on Oracle Linux 9"
docker build --file Dockerfile.ol9 --tag oracle/openjdk:27-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 26 run
e.g. for OpenJDK 27 run

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

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 26 uses `oraclelinux:9` as the default parent image.
The Oracle Java images for OpenJDK 27 uses `oraclelinux:9` as the default parent image.

## License

Expand Down
Loading