@@ -27,10 +27,10 @@ RUN INSTALL_PKGS="iptables nftables" && \
27
27
ovsver_short=$(echo "$ovsver" | cut -d'.' -f1,2) && \
28
28
ovnver_short=$(echo "$ovnver" | cut -d'.' -f1,2) && \
29
29
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" && \
31
31
dnf --setopt=retries=2 --setopt=timeout=2 install -y --nodocs "ovn$ovnver_short = $ovnver" "ovn$ovnver_short-central = $ovnver" "ovn$ovnver_short-host = $ovnver" && \
32
32
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
34
34
35
35
RUN mkdir -p /var/run/openvswitch && \
36
36
mkdir -p /var/run/ovn && \
@@ -47,5 +47,12 @@ COPY .git/refs/heads/ /root/.git/refs/heads/
47
47
# variables to direct operation and configure ovn
48
48
COPY dist/images/ovnkube.sh /root/
49
49
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
+
50
57
WORKDIR /root
51
58
ENTRYPOINT /root/ovnkube.sh
0 commit comments