File tree 3 files changed +11
-11
lines changed
3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 1
- # Copyright (c) 2019, 2024 Oracle and/or its affiliates.
1
+ # Copyright (c) 2019, 2024 Oracle and/or its affiliates.
2
2
#
3
3
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
4
4
#
@@ -35,7 +35,7 @@ ENV LANG en_US.UTF-8
35
35
36
36
# Environment variables for the builder image.
37
37
# Required to validate that you are using the correct file
38
-
38
+
39
39
ENV JAVA_HOME=/usr/java/jdk-8
40
40
41
41
COPY server-jre-8u*-linux-x64.tar.gz /tmp/jdk.tgz
@@ -71,6 +71,6 @@ RUN yum -y update; \
71
71
alternatives --install "/usr/bin/$base" "$base" "$bin" 20000; \
72
72
done; \
73
73
# -Xshare:dump will create a CDS archive to improve startup in subsequent runs
74
- # the file will be stored as /usr/java/jdk-8/jre/lib/amd64/server/classes.jsa
74
+ # the file will be stored as /usr/java/jdk-8/jre/lib/amd64/server/classes.jsa
75
75
# See https://docs.oracle.com/javase/8/docs/technotes/guides/vm/class-data-sharing.html
76
76
java -Xshare:dump;
Original file line number Diff line number Diff line change 21
21
# $ bash build.sh
22
22
#
23
23
24
- FROM oraclelinux:9
24
+ FROM oraclelinux:9
25
25
26
26
LABEL maintainer=
"Aurelio Garcia-Ribeyro <[email protected] >"
27
27
28
28
ENV JAVA_URL=https://download.java.net/java/GA/jdk23.0.1/c28985cbf10d4e648e4004050f8781aa/11/GPL \
29
29
JAVA_HOME=/usr/java/jdk-23 \
30
30
LANG=en_US.UTF-8
31
31
32
- # If you need the Java Version you can read it from the release file with
32
+ # If you need the Java Version you can read it from the release file with
33
33
# JAVA_VERSION=$(sed -n '/^JAVA_VERSION="/{s///;s/"//;p;}' "$JAVA_HOME"/release);
34
-
34
+
35
35
ENV PATH $JAVA_HOME/bin:$PATH
36
-
36
+
37
37
# Since the files are compressed as tar.gz first dnf install tar. gzip is already in oraclelinux:9
38
38
SHELL ["/bin/bash" , "-o" , "pipefail" , "-c" ]
39
39
RUN set -eux; \
40
40
dnf -y update; \
41
41
dnf install -y \
42
42
tar \
43
- # JDK assumes freetype is available
43
+ # JDK assumes freetype is available
44
44
freetype fontconfig \
45
45
; \
46
46
rm -rf /var/cache/dnf; \
@@ -50,7 +50,7 @@ RUN set -eux; \
50
50
then ARCH="x64" ; \
51
51
fi && \
52
52
JAVA_PKG="$JAVA_URL" /openjdk-23.0.1_linux-"${ARCH}" _bin.tar.gz ; \
53
- JAVA_SHA256="$(curl " $JAVA_PKG".sha256)" ; \
53
+ JAVA_SHA256="$(curl " $JAVA_PKG".sha256)" ; \
54
54
curl --output /tmp/jdk.tgz "$JAVA_PKG" && \
55
55
echo "$JAVA_SHA256" */tmp/jdk.tgz | sha256sum -c -; \
56
56
mkdir -p "$JAVA_HOME" ; \
@@ -63,6 +63,6 @@ RUN ln -sfT "$JAVA_HOME" /usr/java/default; \
63
63
base="$(basename " $bin")" ; \
64
64
[ ! -e "/usr/bin/$base" ]; \
65
65
alternatives --install "/usr/bin/$base" "$base" "$bin" 20000; \
66
- done;
66
+ done;
67
67
68
68
CMD ["jshell" ]
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- # Copyright (c) 2023 Oracle and/or its affiliates.
3
+ # Copyright (c) 2023 Oracle and/or its affiliates.
4
4
#
5
5
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
6
6
You can’t perform that action at this time.
0 commit comments