Update tests and NBI Dockerfile to patch pyangbing and install libmagic1
[osm/devops.git] / docker / tests / Dockerfile
index bafe66f..2c824bc 100644 (file)
@@ -42,7 +42,8 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \
     iputils-ping=3:* \
     jq=1.6* \
     libcurl4-openssl-dev=7.81.* \
-    libssl-dev=3.0.*
+    libssl-dev=3.0.* \
+    libmagic1=1:5.*
 
 ARG OSM_TESTS_URL
 ARG PYTHON3_OSM_IM_URL
@@ -66,6 +67,9 @@ RUN mv /usr/share/osm-tests/robot-systest /robot-systest
 RUN mv /usr/share/osm-tests/conformance-tests/ /robot-systest/
 RUN mv /usr/share/osm-tests/charm.sh /usr/sbin/charm
 
+COPY pyangbind.patch /robot-systest
+RUN patch /usr/local/lib/python3.10/dist-packages/pyangbind/lib/yangtypes.py < /robot-systest/pyangbind.patch
+
 ARG CACHE_DATE=not_a_date
 RUN git clone \
     https://osm.etsi.org/gitlab/vnf-onboarding/osm-packages.git \