Skip to content
Merged
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
21 changes: 5 additions & 16 deletions docker/Dockerfile.base
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
# Copyright (c) 2022 - 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2022 - 2025, Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/.

# This Dockerfile is for building the base image which contains the necessary components
# to build and run the Docker image.
# This image is based on the container-registry.oracle.com/os/oraclelinux:9-slim image and contains the following
# components:
# Python3.11.4 compiled and installed from source.
# Oracle JDK 17 downloaded and installed from the tarball.
# Python3.11.13 compiled and installed from source.
# Souffle 2.5 compiled and installed from source.
# Other runtime libraries (e.g sqlite-devel) which are installed from dnf.

FROM container-registry.oracle.com/os/oraclelinux:9-slim@sha256:e2aa8053b4a15f27c5f80666be1190d24aa3f403225f2dd6fdb545979f08482a
FROM container-registry.oracle.com/os/oraclelinux:9-slim@sha256:92deb326256d4d3053d210397b00dce9a423789d1c555adb7a3b7a1f0747ea2f

ENV HOME="/home/macaron" \
# Setting Python related environment variables.
PYTHON3_VERSION=3.11.4 \
PYTHON3_VERSION=3.11.13 \
PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
# https://github.com/docker-library/python/blob/f568f56f28fab0fe87b34db777e2c2861cef002b/3.11/slim-buster/Dockerfile#L12
LANG="C.UTF-8" \
# The GPG key to verify the source tar ball following the instructions in https://www.python.org/downloads/
PYTHON_SOURCE_GPG="A035C8C19219BA821ECEA86B64E628F8D684696D" \
# Setting Java related environment variables.
JAVA_HOME="/opt/jdk-17.0.12" \
PATH=/usr/local/bin:/opt/jdk-17.0.12/bin:$PATH
PATH=/usr/local/bin:$PATH

# We run the installation of all components in one single RUN to minimize the final image size.
RUN : \
Expand Down Expand Up @@ -172,12 +169,6 @@ enabled=1\
[ ! -e "/usr/local/bin/$dst" ]; \
ln -svT "$src" "/usr/local/bin/$dst"; \
done \
# ---------------------------------------------------------------------------------------------------------------------
# INSTALLING JAVA.
&& mkdir -p /opt \
&& 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 \
&& tar -xvf jdk-17.0.12_linux-x64_bin.tar.gz --directory /opt/ \
&& rm jdk-17.0.12_linux-x64_bin.tar.gz \
# ---------------------------------------------------------------------------------------------------------------------
# INSTALLING SOUFFLE FROM SOURCE.
# Based on https://github.com/souffle-lang/souffle/blob/master/.github/images/oraclelinux-8/Dockerfile.
Expand Down Expand Up @@ -230,8 +221,6 @@ enabled=1\
&& dnf clean all \
&& rm -rf /var/cache/yum \
&& rm -rf /var/cache/dnf \
&& java --version \
&& javac --version \
&& git --version

CMD [ "/bin/bash" ]
4 changes: 2 additions & 2 deletions docker/Dockerfile.final
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2022 - 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2022 - 2025, Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/.

# This Dockerfile is for building the final production image. It's based on ghcr.io/oracle/macaron-base and ghcr.io/oracle/maracon-deps.
Expand All @@ -11,7 +11,7 @@
# Note that the local machine must login to ghcr.io so that Docker could pull the ghcr.io/oracle/macaron-base
# image for this build.

FROM ghcr.io/oracle/macaron-base:latest@sha256:3b1f5ab197ee4429c598712bb8abb555a094e879f69e35439061777ac3bcb138
FROM ghcr.io/oracle/macaron-base:latest@sha256:e7cb431d2a870999b70a9a282a84e7b278f7a9ea91e60ba2a8efdab35b4b7e71

ENV HOME="/home/macaron"

Expand Down
Loading