diff options
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r-- | docker/Dockerfile | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile index ec86f9ce..44b9c8a3 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -262,6 +262,22 @@ RUN export RTRLIB_VERSION="56e67e7805953eb84d3d68dfb4ff4447f2a8c925" \ cd /tmp/rtrlib-${RTRLIB_VERSION} && dpkg-buildpackage -uc -us -tc -b && \ dpkg -i ../librtr0*_${ARCH}.deb ../librtr-dev*_${ARCH}.deb ../rtr-tools*_${ARCH}.deb +# Packages needed to build libyang2 +RUN pip3 install apkg +RUN apt-get update && apt-get install -y \ + graphviz \ + cmake \ + 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 @@ -283,7 +299,6 @@ RUN apt-get update && apt-get install -y \ libsnmp-dev \ libssh-dev \ libsystemd-dev \ - libyang-dev \ lsb-base \ pkg-config \ python3 \ |