Merge pull request #5242 from FRRouting/feature/topotests-docker-libyang-from-repo

topotests/Dockerfile: Install libyang from repository
This commit is contained in:
Donatas Abraitis 2019-10-29 14:40:16 +02:00 committed by GitHub
commit 7da2604c21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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