summaryrefslogtreecommitdiffstats
path: root/tests/topotests
diff options
context:
space:
mode:
authorChristian Franke <chris@opensourcerouting.org>2018-11-05 17:23:37 +0100
committerChristian Franke <chris@opensourcerouting.org>2018-11-29 16:51:27 +0100
commit7996f1975dc42854b9a3e3df0ea18d21b5d2bac0 (patch)
tree12988f4f68ad790dc41f0e3a0949ab179581777b /tests/topotests
parentDocker: Fail if compilation is unsucessful (diff)
downloadfrr-7996f1975dc42854b9a3e3df0ea18d21b5d2bac0.tar.xz
frr-7996f1975dc42854b9a3e3df0ea18d21b5d2bac0.zip
Dockerfile: Install libyang
Recent versions of FRR require libyang to build. So install it from the FRR CI servers. Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Diffstat (limited to 'tests/topotests')
-rw-r--r--tests/topotests/Dockerfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/topotests/Dockerfile b/tests/topotests/Dockerfile
index 4f418b3ac..4a07336a1 100644
--- a/tests/topotests/Dockerfile
+++ b/tests/topotests/Dockerfile
@@ -15,6 +15,7 @@ RUN export DEBIAN_FRONTEND=noninteractive \
less \
libtool \
libjson-c-dev \
+ libpcre3-dev \
libpython-dev \
libreadline-dev \
libc-ares-dev \
@@ -30,6 +31,7 @@ RUN export DEBIAN_FRONTEND=noninteractive \
tmux \
valgrind \
vim \
+ wget \
x11-xserver-utils \
xterm \
&& pip install \
@@ -37,6 +39,16 @@ RUN export DEBIAN_FRONTEND=noninteractive \
ipaddr \
pytest
+RUN cd /tmp \
+ && wget -q https://ci1.netdef.org/artifact/LIBYANG-YANGRELEASE/shared/build-1/Ubuntu-18.04-x86_64-Packages/libyang-dev_0.16.46_amd64.deb \
+ -O libyang-dev.deb \
+ && wget -q https://ci1.netdef.org/artifact/LIBYANG-YANGRELEASE/shared/build-1/Ubuntu-18.04-x86_64-Packages/libyang_0.16.46_amd64.deb \
+ -O libyang.deb \
+ && echo "039252cc66eb254a97e160b1c325af669470cde8a02d73ec9f7b920ed3c7997c libyang.deb" | sha256sum -c - \
+ && echo "e7e2d5bfc7b33b3218df8bef404432970f9b4ad10d6dbbdcb0e0be2babbb68e9 libyang-dev.deb" | sha256sum -c - \
+ && dpkg -i libyang*.deb \
+ && rm libyang*.deb
+
RUN groupadd -r -g 92 frr \
&& groupadd -r -g 85 frrvty \
&& useradd -c "FRRouting suite" \