Skip to content

Commit d7b752b

Browse files
author
Ilya Maximets
committed
Dockerfile.base: Pre-release test for openvswitch3.4-3.4.2-66.el9fdp
Signed-off-by: Ilya Maximets <[email protected]>
1 parent 09261dc commit d7b752b

5 files changed

+9
-2
lines changed

Dockerfile.base

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ RUN INSTALL_PKGS="iptables nftables" && \
2727
ovsver_short=$(echo "$ovsver" | cut -d'.' -f1,2) && \
2828
ovnver_short=$(echo "$ovnver" | cut -d'.' -f1,2) && \
2929
dnf --setopt=retries=2 --setopt=timeout=2 install -y --nodocs $INSTALL_PKGS && \
30-
dnf --setopt=retries=2 --setopt=timeout=2 install -y --nodocs "openvswitch$ovsver_short = $ovsver" "python3-openvswitch$ovsver_short = $ovsver" && \
30+
dnf --setopt=retries=2 --setopt=timeout=2 install -y --nodocs "openvswitch$ovsver_short" "python3-openvswitch$ovsver_short" && \
3131
dnf --setopt=retries=2 --setopt=timeout=2 install -y --nodocs "ovn$ovnver_short = $ovnver" "ovn$ovnver_short-central = $ovnver" "ovn$ovnver_short-host = $ovnver" && \
3232
dnf clean all && rm -rf /var/cache/* && \
33-
sed 's/%/"/g' <<<"%openvswitch$ovsver_short-devel = $ovsver% %openvswitch$ovsver_short-ipsec = $ovsver% %ovn$ovnver_short-vtep = $ovnver%" > /more-pkgs
33+
sed 's/%/"/g' <<<"%openvswitch$ovsver_short-devel% %openvswitch$ovsver_short-ipsec% %ovn$ovnver_short-vtep = $ovnver%" > /more-pkgs
3434

3535
RUN mkdir -p /var/run/openvswitch && \
3636
mkdir -p /var/run/ovn && \
@@ -47,5 +47,12 @@ COPY .git/refs/heads/ /root/.git/refs/heads/
4747
# variables to direct operation and configure ovn
4848
COPY dist/images/ovnkube.sh /root/
4949

50+
# Copy and install custom OVS/OVN RPMs.
51+
RUN mkdir -p /root/fdp/
52+
COPY *fdp.*.rpm /root/fdp/
53+
RUN dnf install -y 'dnf-command(versionlock)'
54+
RUN dnf install -y /root/fdp/*.rpm
55+
RUN dnf versionlock add python3-openvswitch* openvswitch* ovn*
56+
5057
WORKDIR /root
5158
ENTRYPOINT /root/ovnkube.sh
6.92 MB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)