summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-08-13 21:28:58 +0200
committerChristian Poessinger <christian@poessinger.com>2021-11-23 16:34:31 +0100
commit02c57f495bae66881e5475fd714ffb07a35085c0 (patch)
treef3a786d0772685d4592cd1e1204b913ee3ef063e /docker
parent535a7c718b5c3389529eea90c8cfddff64b0ea8f (diff)
downloadvyos-build-02c57f495bae66881e5475fd714ffb07a35085c0.tar.gz
vyos-build-02c57f495bae66881e5475fd714ffb07a35085c0.zip
Docker: T3753: build libyang2 version required by FRR 8.0
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile9
1 files changed, 8 insertions, 1 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 607715e5..44b9c8a3 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -270,6 +270,14 @@ RUN apt-get update && apt-get install -y \
libpcre3-dev \
python3-pip
+# Prerequisites for building FRR from source
+# see http://docs.frrouting.org/projects/dev-guide/en/latest/building-frr-for-debian8.html
+#
+RUN export LIBYANG_COMMIT="v2.0.7" && \
+ git clone https://github.com/CESNET/libyang.git && \
+ cd libyang && git checkout $LIBYANG_COMMIT && apkg build -i && \
+ cd pkg/pkgs/debian-11/libyang2_* && dpkg -i *.deb
+
# Packages needed to build FRR itself
# https://github.com/FRRouting/frr/blob/master/doc/developer/building-libyang.rst
# for more info
@@ -291,7 +299,6 @@ RUN apt-get update && apt-get install -y \
libsnmp-dev \
libssh-dev \
libsystemd-dev \
- libyang-dev \
lsb-base \
pkg-config \
python3 \