This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch jdk11
in repository https://gitbox.apache.org/repos/asf/ozone-docker-runner.git
The following commit(s) were added to refs/heads/jdk11 by this push:
new deedbed HDDS-11111. Create ozone-runner base image for Java 11 (#28)
deedbed is described below
commit deedbed6998744caffe190a3cfa125b4bb604263
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Sat Sep 7 22:49:45 2024 +0200
HDDS-11111. Create ozone-runner base image for Java 11 (#28)
---
Dockerfile | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/Dockerfile b/Dockerfile
index a77f277..fb3f5ad 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -95,17 +95,13 @@ RUN set -eux ; \
curl -L ${url} | tar xvz ; \
mv async-profiler-* /opt/profiler
-# OpenJDK 17
+# OpenJDK 11
RUN set -eux ; \
ARCH="$(arch)"; \
case "${ARCH}" in \
x86_64) \
-
url='https://download.java.net/java/GA/jdk17.0.2/dfd4a8d0985749f896bed50d7138ee7f/8/GPL/openjdk-17.0.2_linux-x64_bin.tar.gz';
\
-
sha256='0022753d0cceecacdd3a795dd4cea2bd7ffdf9dc06e22ffd1be98411742fbb44'; \
- ;; \
- aarch64) \
-
url='https://download.java.net/java/GA/jdk17.0.2/dfd4a8d0985749f896bed50d7138ee7f/8/GPL/openjdk-17.0.2_linux-aarch64_bin.tar.gz';
\
-
sha256='13bfd976acf8803f862e82c7113fb0e9311ca5458b1decaef8a09ffd91119fa4'; \
+
url='https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_linux-x64_bin.tar.gz';
\
+
sha256='99be79935354f5c0df1ad293620ea36d13f48ec3ea870c838f20c504c9668b57'; \
;; \
*) echo "Unsupported architecture: ${ARCH}"; exit 1 ;; \
esac && \
@@ -114,7 +110,7 @@ RUN set -eux ; \
tar xzvf openjdk.tar.gz -C /usr/local && \
rm -f openjdk.tar.gz
-ENV JAVA_HOME=/usr/local/jdk-17.0.2
+ENV JAVA_HOME=/usr/local/jdk-11.0.2
# compatibility with Ozone 1.4.0 and earlier compose env.
RUN mkdir -p /usr/lib/jvm && ln -s $JAVA_HOME /usr/lib/jvm/jre
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]