Add build and setup of the nmstate lib to the Assisted Service container
Currently we are building and setting the code from the master branch
Once the needed code is pushed into nmstate 4.8 reelase, we will be
able to installed released package
@@ -35,7 +35,33 @@ RUN cd build && python3 setup.py sdist --dist-dir /assisted-service-client
FROM quay.io/centos/centos:centos8
# openshift-install requires this
-RUN yum install -y libvirt-libs && yum clean all
+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/nispor && \
+ dnf install -y pkg-config && \
+ dnf install -y glib2-devel && \
+ dnf install -y gobject-introspection-devel && \
+ dnf install -y cairo-devel && \
+ dnf install -y cairo-gobject-devel && \
+ dnf install -y python3-devel && \
+ dnf install -y nispor && \
+ dnf install -y NetworkManager && \
+ dnf install -y NetworkManager-ovs && \
+ dnf install -y NetworkManager-team && \
+ dnf install -y NetworkManager-config-server && \
+ dnf install -y openvswitch2.11 && \
+ dnf install -y python3-openvswitch2.11 && \
+ pip3 install --user pycairo && \
+ dnf remove -y dnf-plugins-core && \
+ dnf clean all
+
+RUN mkdir nmstate
+RUN curl -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
