Skip to content
Open
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
9 changes: 4 additions & 5 deletions ubuntu/jdk/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
FROM ubuntu:latest
FROM ubuntu:focal-20241011
MAINTAINER SgrAlpha <admin@mail.sgr.io>

ENV DEBIAN_FRONTEND=noninteractive \
JAVA_HOME=/usr/lib/jvm/java-8-oracle \
JRE_HOME=/usr/lib/jvm/java-8-oracle/jre

COPY jdk8.tar.gz /

RUN VERSION=8 && \
UPDATE=202 && \
BUILD=08 && \
SIG=1961070e4c9b4e26a04e7f5a083f551e && \
apt-get update && apt-get dist-upgrade -y && \
apt-get install apt-utils ca-certificates curl -y --no-install-recommends && \
curl --silent --location --retry 3 --cacert /etc/ssl/certs/GeoTrust_Global_CA.pem \
--header "Cookie: oraclelicense=accept-securebackup-cookie;" \
http://download.oracle.com/otn-pub/java/jdk/"${VERSION}"u"${UPDATE}"-b"${BUILD}"/"${SIG}"/jdk-"${VERSION}"u"${UPDATE}"-linux-x64.tar.gz \
| tar xz -C /tmp && \
tar -xz -C /tmp -f jdk8.tar.gz && \
mkdir -p /usr/lib/jvm && mv /tmp/jdk1.${VERSION}.0_${UPDATE} "${JAVA_HOME}" && \
apt-get autoclean && apt-get --purge -y autoremove && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
Expand Down
7 changes: 6 additions & 1 deletion ubuntu/jdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,10 @@ The following tags are archived:
* Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files
* This is enabled by defualt in Java 9, and Java 8 updates later than 162.


## Update the Dockerfile
Changed the Dockerfile because of the broken link and command.
1. "FROM ubuntu:lastest" -> "From ubuntu:focal-20241011"
2. add "COPY jdk8.tar.gz /" and you should get your jdk tar gz from the official ORACLE Page (https://www.oracle.com/kr/java/technologies/javase/javase8-archive-downloads.html).
3. delete "curl ...GeoTrust_Global_CA.pem ... http://download.oracle.com/"-linux-x64.tar.gz \" which is not available anymore.
4. fix "tar xz -C /tmp" with "tar -xz -C /tmp -f jdk8.tar.gz" because you need to specify the file.