Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ FROM registry.redhat.io/rhel9-eus/rhel-9.4-bootc:9.4
ARG USHIFT_RPM_REPO_NAME=microshift-local
ARG USHIFT_RPM_REPO_PATH=/tmp/$USHIFT_RPM_REPO_NAME

# Lock the OS release version and enable EUS repositories to prevent
# the installation of packages belonging to a newer OS release
RUN source /etc/os-release && \
echo "${VERSION_ID}" > /etc/dnf/vars/releasever && \
dnf config-manager --set-disabled '*' && \
dnf config-manager --set-enabled \
"rhel-9-for-$(uname -m)-baseos-eus-rpms" \
"rhel-9-for-$(uname -m)-appstream-eus-rpms"

# Copy the MicroShift repository contents
COPY ./rpm-repos/$USHIFT_RPM_REPO_NAME $USHIFT_RPM_REPO_PATH

Expand Down