version Docker Automated BuildDocker Oracle Java Build

README

Step

1
2
3
4
5
6
7
8
9
10
11
split -b 50m jdk-8u301-linux-x64.rpm jdk-8u301-linux-amd64-


split -b 50m jdk-11.0.12_linux-x64_bin.rpm jdk-11.0.12_linux-amd64-
split -b 50m jdk-11.0.12_linux-aarch64_bin.rpm jdk-11.0.12_linux-arm64-

split -b 50m jdk-16.0.2_linux-x64_bin.rpm jdk-16.0.2_linux-amd64-
split -b 50m jdk-16.0.2_linux-aarch64_bin.rpm jdk-16.0.2_linux-arm64-

split -b 50m jdk-17_linux-x64_bin.rpm jdk-17_linux-amd64-
split -b 50m jdk-17_linux-aarch64_bin.rpm jdk-17_linux-arm64-
  • Build

How to use

Build From Centos ; platforms: linux/arm64,linux/amd64

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM xrsec/java:latest
LABEL maintainer="xrsec"
LABEL mail="Jalapeno1868@outlook.com"

COPY Dockerfile /www

RUN yum update -y && yum upgrade -y \
&& yum install sudo ncurses langpacks-zh_CN.noarch -y

ENV LANG zh_CN.utf8
ENV TZ Asia/Shanghai

STOPSIGNAL SIGWINCH

EXPOSE 22 80 443
CMD ["/bin/bash"]

MD5

1
2
3
4
5
6
7
8
find ./ -type f -print0 | xargs -0 MD5
MD5 ( jdk16/jdk-16.0.2_linux-aarch64_bin.rpm ) = 322cbff97b3993942c519046b5a5e450
MD5 ( jdk16/jdk-16.0.2_linux-x64_bin.rpm ) = bd09c3a2c9a51ba4e888664dd38d7bf1
MD5 ( jdk11/jdk-11.0.12_linux-x64_bin.rpm ) = 2e2309665bd8086fe88a5f1d30ee2777
MD5 ( jdk11/jdk-11.0.12_linux-aarch64_bin.rpm ) = 4bc3a973f0ff333e64c0255d4d5466a2
MD5 ( jdk8/jdk-8u301-linux-x64.rpm ) = c1ad066b767a4bdc3401c1988eeb2516
MD5 ( jdk8/jdk-8u301-linux-aarch64.rpm ) = 637725518e50e6554feefbb194c015ba
➜ Oracle_Java_Docker git:(master) ✗

Licenses

JDK 17 is downloaded, as part of the build process, from Oracle Website under the Oracle No-Fee Terms and Conditions (NFTC).

For building JDK 11 and Server JRE 8 you must first download the corresponding Java Runtime from the Oracle Website and accept the license indicated on that page.

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 license.

Customer Support

Oracle offers support for JDK 17, JDK 11, and JDK 8 (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.

XRSec has the right to modify and interpret this article. If you want to reprint or disseminate this article, you must ensure the integrity of this article, including all contents such as copyright notice. Without the permission of the author, the content of this article shall not be modified or increased or decreased arbitrarily, and it shall not be used for commercial purposes in any way