Skip to content

Commit

Permalink
Allow erasing on package install for openvswitch version upgrades.
Browse files Browse the repository at this point in the history
Co-authored-by: Ilya Maximets <i.maximets@ovn.org>
Signed-off-by: Nadia Pinaeva <n.m.pinaeva@gmail.com>
  • Loading branch information
npinaeva and igsilya committed Aug 28, 2024
1 parent 23e4bf9 commit 97527ab
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ COPY ./rpm-repos/$USHIFT_RPM_REPO_NAME $USHIFT_RPM_REPO_PATH
# - MicroShift local RPM repository
# - OpenShift previous minor version RHEL repositories for MicroShift dependencies
# Install MicroShift, test agent, a few helper utilities and cleanup
#
# Allow erasing because update may require a new version of openvswitch and
# major versions of openvswitch are separate packages that obsolete each other.
RUN ${REPO_CONFIG_SCRIPT} -create ${USHIFT_RPM_REPO_PATH} && \
awk 'FNR==1 {print "=== " FILENAME " ==="} {print}' /etc/yum.repos.d/*.repo && \
dnf install -y vi firewalld microshift microshift-test-agent && \
dnf install -y --allowerasing vi firewalld microshift microshift-test-agent && \
systemctl enable microshift microshift-test-agent && \
${REPO_CONFIG_SCRIPT} -delete && \
rm -f ${REPO_CONFIG_SCRIPT} && \
Expand Down

0 comments on commit 97527ab

Please sign in to comment.