Skip to content

Commit 2add3ab

Browse files
committed
Update the broken things
1 parent e8aeaa5 commit 2add3ab

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

ubuntu/jdk/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
1-
FROM ubuntu:latest
1+
FROM ubuntu:focal-20241011
22
MAINTAINER SgrAlpha <admin@mail.sgr.io>
33

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

8+
COPY jdk8.tar.gz /
9+
810
RUN VERSION=8 && \
911
UPDATE=202 && \
1012
BUILD=08 && \
1113
SIG=1961070e4c9b4e26a04e7f5a083f551e && \
1214
apt-get update && apt-get dist-upgrade -y && \
1315
apt-get install apt-utils ca-certificates curl -y --no-install-recommends && \
14-
curl --silent --location --retry 3 --cacert /etc/ssl/certs/GeoTrust_Global_CA.pem \
15-
--header "Cookie: oraclelicense=accept-securebackup-cookie;" \
16-
http://download.oracle.com/otn-pub/java/jdk/"${VERSION}"u"${UPDATE}"-b"${BUILD}"/"${SIG}"/jdk-"${VERSION}"u"${UPDATE}"-linux-x64.tar.gz \
17-
| tar xz -C /tmp && \
16+
tar -xz -C /tmp -f jdk8.tar.gz && \
1817
mkdir -p /usr/lib/jvm && mv /tmp/jdk1.${VERSION}.0_${UPDATE} "${JAVA_HOME}" && \
1918
apt-get autoclean && apt-get --purge -y autoremove && \
2019
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \

ubuntu/jdk/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,10 @@ The following tags are archived:
6969
* Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files
7070
* This is enabled by defualt in Java 9, and Java 8 updates later than 162.
7171

72-
72+
## Update the Dockerfile
73+
Changed the Dockerfile because of the broken link and command.
74+
1. "FROM ubuntu:lastest" -> "From ubuntu:focal-20241011"
75+
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).
76+
3. delete "curl ...GeoTrust_Global_CA.pem ... http://download.oracle.com/"-linux-x64.tar.gz \" which is not available anymore.
77+
4. fix "tar xz -C /tmp" with "tar -xz -C /tmp -f jdk8.tar.gz" because you need to specify the file.
7378

0 commit comments

Comments
 (0)