6
6
# This image is based on the container-registry.oracle.com/os/oraclelinux:9-slim image and contains the following
7
7
# components:
8
8
# Python3.11.4 compiled and installed from source.
9
- # Oracle JDK 17 installed from dnf .
10
- # Souffle 2.3 compiled and installed from source.
9
+ # Oracle JDK 17 downloaded and installed from the tarball .
10
+ # Souffle 2.5 compiled and installed from source.
11
11
# Other runtime libraries (e.g sqlite-devel) which are installed from dnf.
12
12
13
13
FROM container-registry.oracle.com/os/oraclelinux:9-slim@sha256:e2aa8053b4a15f27c5f80666be1190d24aa3f403225f2dd6fdb545979f08482a
@@ -22,8 +22,8 @@ ENV HOME="/home/macaron" \
22
22
# The GPG key to verify the source tar ball following the instructions in https://www.python.org/downloads/
23
23
PYTHON_SOURCE_GPG="A035C8C19219BA821ECEA86B64E628F8D684696D" \
24
24
# Setting Java related environment variables.
25
- JAVA_HOME="/usr/lib/jvm/ jdk-17-oracle-x64 " \
26
- PATH=/usr/local/bin:/usr/lib/jvm/ jdk-17-oracle-x64 /bin:$PATH
25
+ JAVA_HOME="/opt/ jdk-17.0.12 " \
26
+ PATH=/usr/local/bin:/opt/ jdk-17.0.12 /bin:$PATH
27
27
28
28
# We run the installation of all components in one single RUN to minimize the final image size.
29
29
RUN : \
@@ -72,8 +72,6 @@ enabled=1\
72
72
ncurses-devel \
73
73
sqlite-devel \
74
74
zlib-devel \
75
- # Oracle JDK17
76
- https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.rpm \
77
75
# Store the list of user installed packages to preserve them when we clean up unused packages.
78
76
# https://dnf.readthedocs.io/en/latest/command_ref.html#history-command
79
77
&& USER_MANUAL_INSTALLED="$(dnf history userinstalled | tail -n +2)" \
@@ -174,6 +172,12 @@ enabled=1\
174
172
[ ! -e "/usr/local/bin/$dst" ]; \
175
173
ln -svT "$src" "/usr/local/bin/$dst"; \
176
174
done \
175
+ # ---------------------------------------------------------------------------------------------------------------------
176
+ # INSTALLING JAVA.
177
+ && mkdir -p /opt \
178
+ && wget -O jdk-17.0.12_linux-x64_bin.tar.gz https://download.oracle.com/java/17/archive/jdk-17.0.12_linux-x64_bin.tar.gz \
179
+ && tar -xvf jdk-17.0.12_linux-x64_bin.tar.gz --directory /opt/ \
180
+ && rm jdk-17.0.12_linux-x64_bin.tar.gz \
177
181
# ---------------------------------------------------------------------------------------------------------------------
178
182
# INSTALLING SOUFFLE FROM SOURCE.
179
183
# Based on https://github.com/souffle-lang/souffle/blob/master/.github/images/oraclelinux-8/Dockerfile.
@@ -195,7 +199,7 @@ enabled=1\
195
199
make \
196
200
pkg-config \
197
201
rpm-build \
198
- && git clone --depth=1 https://github.com/souffle-lang/souffle/ -b 2.4 \
202
+ && git clone --depth=1 https://github.com/souffle-lang/souffle/ -b 2.5 \
199
203
&& cd souffle \
200
204
&& cmake -S . -B build -DSOUFFLE_DOMAIN_64BIT=ON -DCMAKE_INSTALL_PREFIX="/usr/local" \
201
205
&& nproc="$(nproc)" \
0 commit comments