Skip to content

Commit defc6de

Browse files
aureliogrbDjelibeybi
authored andcommitted
JMS has been updated to no longer require user to specify OCI_REGION. Removed the need to pass the OCI region as an argument to the dockerfiles
Signed-off-by: Aurelio Garcia-Ribeyro <[email protected]>
1 parent 27288b9 commit defc6de

File tree

5 files changed

+24
-31
lines changed

5 files changed

+24
-31
lines changed

OracleJava/11/Dockerfile.ol8

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,27 @@
88
#
99
# ARGS
1010
# ----
11-
# This docker file requires two arguments:
12-
# 1) JDK11_TOKEN is a valid dowload token for JDK 11. It can be created in cloud.oracle.com/jms under Java Download
11+
# This docker file requires one argument:
12+
# JDK11_TOKEN is a valid dowload token for JDK 11. It can be created in cloud.oracle.com/jms under Java Download
1313
# Token generation is documented on https://docs.cloud.oracle.com/en-us/iaas/jms/doc/java-download.html
14-
# 2) OCI_REGION is the Oracle Cloud Infrastucture (OCI) region where the token is generated.
1514
#
1615
# REQUIRED FILES TO BUILD THIS IMAGE
1716
# ----------------------------------
1817
# This dockerfile will download a copy of latest version of JDK 11 from
19-
# https://javamanagementservice-download.<OCI_REGION>.oci.oraclecloud.com/java/11/latest/
18+
# https://java.oraclecloud.com/java/11/latest/
2019
#
2120
# It will use either x64 or aarch64 depending on the target platform
2221
#
2322
# HOW TO BUILD THIS IMAGE
2423
# -----------------------
2524
# Run:
26-
# $ docker build --file Dockerfile.ol8 --tag oracle/jdk:11 --build-arg JDK11_TOKEN=<token> --build-arg OCI_REGION=<region> .
25+
# $ docker build --file Dockerfile.ol8 --tag oracle/jdk:11 --build-arg JDK11_TOKEN=<token> .
2726
#
2827
# The builder image will be used to uncompress the tar.gz file with the Java Runtime.
2928

3029
FROM oraclelinux:8 as builder
3130
ARG JDK11_TOKEN
32-
ARG OCI_REGION
31+
3332

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

@@ -43,7 +42,7 @@ ENV LANG en_US.UTF-8
4342
# Environment variables for the builder image.
4443
# Required to validate that you are using the correct file
4544

46-
ENV JAVA_URL=https://javamanagementservice-download."${OCI_REGION}".oci.oraclecloud.com/java/11/latest/ \
45+
ENV JAVA_URL=https://java.oraclecloud.com/java/11/latest/ \
4746
JAVA_HOME=/usr/java/jdk-11
4847

4948
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

OracleJava/17/Dockerfile.ol8

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,26 @@
88
#
99
# ARGS
1010
# ----
11-
# This docker file requires two arguments:
12-
# 1) JDK17_TOKEN is a valid dowload token for JDK 17. It can be created in cloud.oracle.com/jms under Java Download
11+
# This docker file requires one argument:
12+
# JDK17_TOKEN is a valid dowload token for JDK 17. It can be created in cloud.oracle.com/jms under Java Download
1313
# Token generation is documented on https://docs.cloud.oracle.com/en-us/iaas/jms/doc/java-download.html
14-
# 2) OCI_REGION is the Oracle Cloud Infrastucture (OCI) region where the token is generated.
1514
#
1615
# REQUIRED FILES TO BUILD THIS IMAGE
1716
# ----------------------------------
1817
# This dockerfile will download a copy of latest version of JDK 17 from
19-
# https://javamanagementservice-download.<OCI_REGION>.oci.oraclecloud.com/java/17/latest/
18+
# https://java.oraclecloud.com/java/17/latest/
2019
#
2120
# It will use either x64 or aarch64 depending on the target platform
2221
#
2322
# HOW TO BUILD THIS IMAGE
2423
# -----------------------
2524
# Run:
26-
# $ docker build --file Dockerfile.ol8 --tag oracle/jdk:17 --build-arg JDK17_TOKEN=<token> --build-arg OCI_REGION=<region> .
25+
# $ docker build --file Dockerfile.ol8 --tag oracle/jdk:17 --build-arg JDK17_TOKEN=<token> .
2726
#
2827
# The builder image will be used to uncompress the tar.gz file with the Java Runtime.
2928

3029
FROM oraclelinux:8 as builder
3130
ARG JDK17_TOKEN
32-
ARG OCI_REGION
3331

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

@@ -43,7 +41,7 @@ ENV LANG en_US.UTF-8
4341
# Environment variables for the builder image.
4442
# Required to validate that you are using the correct file
4543

46-
ENV JAVA_URL=https://javamanagementservice-download."${OCI_REGION}".oci.oraclecloud.com/java/17/latest/ \
44+
ENV JAVA_URL=https://java.oraclecloud.com/java/17/latest/ \
4745
JAVA_HOME=/usr/java/jdk-17
4846

4947
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

OracleJava/8/jdk/Dockerfile.ol8

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,26 @@
88
#
99
# ARGS
1010
# ----
11-
# This docker file requires two arguments:
12-
# 1) JDK8_TOKEN is a valid dowload token for JDK 8. It can be created in cloud.oracle.com/jms under Java Download
11+
# This docker file requires one argument:
12+
# JDK8_TOKEN is a valid dowload token for JDK 8. It can be created in cloud.oracle.com/jms under Java Download
1313
# Token generation is documented on https://docs.cloud.oracle.com/en-us/iaas/jms/doc/java-download.html
14-
# 2) OCI_REGION is the Oracle Cloud Infrastucture (OCI) region where the token is generated.
1514
#
1615
# REQUIRED FILES TO BUILD THIS IMAGE
1716
# ----------------------------------
1817
# This dockerfile will download a copy of latest version of JDK 8 from
19-
# https://javamanagementservice-download.<OCI_REGION>.oci.oraclecloud.com/java/8/latest/
18+
# https://java.oraclecloud.com/java/8/latest/
2019
#
2120
# It will use either x64 or aarch64 depending on the target platform
2221
#
2322
# HOW TO BUILD THIS IMAGE
2423
# -----------------------
2524
# Run:
26-
# $ docker build --file Dockerfile.ol8 --tag oracle/jdk:8 --build-arg JDK8_TOKEN=<token> --build-arg OCI_REGION=<region> .
25+
# $ docker build --file Dockerfile.ol8 --tag oracle/jdk:8 --build-arg JDK8_TOKEN=<token> .
2726
#
2827
# The builder image will be used to uncompress the tar.gz file with the Java Runtime.
2928

3029
FROM oraclelinux:8 as builder
3130
ARG JDK8_TOKEN
32-
ARG OCI_REGION
3331

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

@@ -42,7 +40,7 @@ ENV LANG en_US.UTF-8
4240
# Environment variables for the builder image.
4341
# Required to validate that you are using the correct file
4442

45-
ENV JAVA_URL=https://javamanagementservice-download."${OCI_REGION}".oci.oraclecloud.com/java/8/latest/ \
43+
ENV JAVA_URL=https://java.oraclecloud.com/java/8/latest/ \
4644
JAVA_HOME=/usr/java/jdk-8
4745

4846
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

OracleJava/8/serverjre/Dockerfile.ol8

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,24 @@
88
#
99
# ARGS
1010
# ----
11-
# This docker file requires two arguments:
12-
# 1) JDK8_TOKEN is a valid dowload token for Server JRE 8 (Create the token for JDK 8). It can be created in cloud.oracle.com/jms under Java Download
11+
# This docker file requires one arguments:
12+
# JDK8_TOKEN is a valid dowload token for Server JRE 8 (Create the token for JDK 8). It can be created in cloud.oracle.com/jms under Java Download
1313
# Token generation is documented on https://docs.cloud.oracle.com/en-us/iaas/jms/doc/java-download.html
14-
# 2) OCI_REGION is the Oracle Cloud Infrastucture (OCI) region where the token is generated.
1514
#
1615
# REQUIRED FILES TO BUILD THIS IMAGE
1716
# ----------------------------------
1817
# This dockerfile will download a copy of latest version of JDK 8 from
19-
# https://javamanagementservice-download.<OCI_REGION>.oci.oraclecloud.com/java/8/latest/
18+
# https://java.oraclecloud.com/java/8/latest/
2019
#
2120
# HOW TO BUILD THIS IMAGE
2221
# -----------------------
2322
# Run:
24-
# $ docker build --file Dockerfile.ol8 --tag oracle/serverjre:8 --build-arg JDK8_TOKEN=<token> --build-arg OCI_REGION=<region> .
23+
# $ docker build --file Dockerfile.ol8 --tag oracle/serverjre:8 --build-arg JDK8_TOKEN=<token> .
2524
#
2625
# The builder image will be used to uncompress the tar.gz file with the Java Runtime.
2726

2827
FROM oraclelinux:8 as builder
2928
ARG JDK8_TOKEN
30-
ARG OCI_REGION
3129

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

@@ -40,7 +38,7 @@ ENV LANG en_US.UTF-8
4038
# Environment variables for the builder image.
4139
# Required to validate that you are using the correct file
4240

43-
ENV JAVA_URL=https://javamanagementservice-download."${OCI_REGION}".oci.oraclecloud.com/java/8/latest/ \
41+
ENV JAVA_URL=https://java.oraclecloud.com/java/8/latest/ \
4442
JAVA_HOME=/usr/java/jdk-8
4543

4644
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

OracleJava/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ cd ../OracleJava/24
1515
docker build --file Dockerfile.ol9 --tag oracle/jdk:24 .
1616
```
1717

18-
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).
18+
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).
1919

2020
e.g., To build the JDK 17 container image generate a token for JDK 17 and run:
2121

2222
```bash
2323
cd ../OracleJava/17
24-
docker build --file Dockerfile.ol8 --tag oracle/jdk:17 --build-arg JDK17_TOKEN=<$token> --build-arg OCI_REGION=<$region> .
24+
docker build --file Dockerfile.ol8 --tag oracle/jdk:17 --build-arg JDK17_TOKEN=<$token> .
2525
```
2626

2727
e.g., To build the Server JRE 8 container image generate a token for JDK 8 and run:
2828

2929
```bash
3030
cd ../OracleJava/8/serverjre
31-
docker build --file Dockerfile.ol8 --tag oracle/serverjre:8 --build-arg JDK8_TOKEN=<$token> --build-arg OCI_REGION=<$region> .
31+
docker build --file Dockerfile.ol8 --tag oracle/serverjre:8 --build-arg JDK8_TOKEN=<$token> .
3232
```
3333

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

0 commit comments

Comments
 (0)