]> git.puffer.fish Git - matthieu/frr.git/commitdiff
topotests/Dockerfile: Install libyang from repository
authorChristian Franke <chris@opensourcerouting.org>
Tue, 29 Oct 2019 09:08:19 +0000 (10:08 +0100)
committerChristian Franke <chris@opensourcerouting.org>
Tue, 29 Oct 2019 10:02:41 +0000 (11:02 +0100)
Instead of installing libyang from some old build, let's install
the current libyang from our Debian/Ubuntu repository.

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
tests/topotests/Dockerfile

index fc6d6df53073eebfdbde10a5c749d9290bdd9a0c..cdd0ae2f6ecd37f231b2f03ac6a71540d96f1355 100644 (file)
@@ -6,9 +6,11 @@ RUN export DEBIAN_FRONTEND=noninteractive \
         autoconf \
         binutils \
         bison \
+        ca-certificates \
         flex \
         gdb \
         git \
+        gpg \
         install-info \
         iputils-ping \
         iproute2 \
@@ -38,17 +40,15 @@ RUN export DEBIAN_FRONTEND=noninteractive \
     && pip install \
         exabgp==3.4.17 \
         ipaddr \
-        pytest
+        pytest \
+    && rm -rf /var/lib/apt/lists/*
 
-RUN cd /tmp \
-    && wget -q https://ci1.netdef.org/artifact/LIBYANG-YANGRELEASE/shared/build-10/Debian-AMD64-Packages/libyang-dev_0.16.105-1_amd64.deb \
-         -O libyang-dev.deb \
-    && wget -q https://ci1.netdef.org/artifact/LIBYANG-YANGRELEASE/shared/build-10/Debian-AMD64-Packages/libyang0.16_0.16.105-1_amd64.deb \
-         -O libyang.deb \
-    && echo "34bef017e527a590020185f05dc39203bdf1c86223e0d990839623ec629d8598  libyang.deb" | sha256sum -c - \
-    && echo "fe9cc6e3b173ca56ef49428c281e96bf76c0f910aa75cf85098076411484e8f4  libyang-dev.deb" | sha256sum -c - \
-    && dpkg -i libyang*.deb \
-    && rm libyang*.deb
+RUN export DEBIAN_FRONTEND=noninteractive \
+    && apt-key adv --keyserver keyserver.ubuntu.com --recv-key 5418F291D0D4A1AA \
+    && echo "deb https://deb.frrouting.org/frr bionic frr-stable" > /etc/apt/sources.list.d/frr.list \
+    && apt-get update \
+    && apt-get install -y libyang-dev \
+    && rm -rf /var/lib/apt/lists/*
 
 RUN groupadd -r -g 92 frr \
     && groupadd -r -g 85 frrvty \