use the nmstate RPM
@@ -32,7 +32,7 @@ RUN dnf install -y libvirt-libs python3 && \
dnf install -b -y dnf-plugins-core && \
dnf copr enable -y networkmanager/NetworkManager-master && \
dnf copr enable -y nmstate/ovs-el8 && \
- dnf copr enable -y nmstate/nmstate-0.3&& \
+ dnf copr enable -y nmstate/nmstate-1.0&& \
dnf copr enable -y nmstate/nispor && \
dnf install -y pkg-config && \
dnf install -y glib2-devel && \
@@ -47,15 +47,11 @@ RUN dnf install -y libvirt-libs python3 && \
dnf install -y NetworkManager-config-server && \
dnf install -y openvswitch2.11 && \
dnf install -y python3-openvswitch2.11 && \
+ dnf install -y nmstate &&\
pip3 install pycairo && \
dnf remove -y dnf-plugins-core && \
dnf clean all
-RUN mkdir nmstate
-RUN curl --retry 5 -SL https://github.com/nmstate/nmstate/releases/download/v1.0.2/nmstate-1.0.2.tar.gz | tar -xz -C nmstate
-RUN cd /nmstate/nmstate-1.0.2 && python3 setup.py build
-RUN cd /nmstate/nmstate-1.0.2 && python3 setup.py install
-
ARG WORK_DIR=/data
RUN mkdir $WORK_DIR && chmod 775 $WORK_DIR
