summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-03-11 20:37:37 +0100
committerChristian Breunig <christian@breunig.cc>2023-03-11 20:37:37 +0100
commit2fae1410622afc3fd28ef0e4cde5fb8d66bc53b9 (patch)
treebdc6dd6da86ef66daea01b99e00ab2cfa7e8fc17 /docker
parentad69d7248264cdc1ab302a1dce151300f1a738af (diff)
downloadvyos-build-2fae1410622afc3fd28ef0e4cde5fb8d66bc53b9.tar.gz
vyos-build-2fae1410622afc3fd28ef0e4cde5fb8d66bc53b9.zip
Docker: T5076: unbloat container - remove dependencies for frr
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile54
1 files changed, 1 insertions, 53 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index b0bed95f..02554e07 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -221,65 +221,13 @@ RUN apt-get update && apt-get install -y \
build-essential
RUN gem install --no-document fpm
-# Prerequisites for building rtrlib
-# see http://docs.frrouting.org/projects/dev-guide/en/latest/building-frr-for-debian8.html
-RUN apt-get update && apt-get install -y \
- cmake \
- dpkg-dev \
- debhelper \
- libssh-dev \
- doxygen
-
# Build rtrlib release 0.8.0
RUN export RTRLIB_VERSION="0.8.0" export ARCH=$(dpkg-architecture -qDEB_HOST_ARCH) && \
git clone https://github.com/rtrlib/rtrlib.git /tmp/rtrlib && cd /tmp/rtrlib && \
+ mk-build-deps --install --tool "apt-get --yes --no-install-recommends" && \
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 apt-get update && apt-get install -y \
- graphviz \
- cmake \
- libpcre3-dev
-
-# 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.164" && \
- git clone https://github.com/CESNET/libyang.git && \
- cd libyang && git checkout $LIBYANG_COMMIT && pipx run apkg build -i && \
- cd pkg/pkgs/debian-*/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
-RUN apt-get update && apt-get install -y \
- bison \
- chrpath \
- debhelper \
- flex \
- gawk \
- install-info \
- libc-ares-dev \
- libcap-dev \
- libelf-dev \
- libjson-c-dev \
- libpam0g-dev \
- libpcre3-dev \
- libpython3-dev \
- libreadline-dev \
- librtr-dev \
- libsnmp-dev \
- libssh-dev \
- libsystemd-dev \
- lsb-base \
- pkg-config \
- python3 \
- python3-dev \
- python3-pytest \
- python3-sphinx \
- texinfo
-
# Packages needed for hvinfo
RUN apt-get update && apt-get install -y \
gnat \