diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-04-26 17:45:27 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-04-26 17:45:27 +0200 |
commit | 574bfb639918cc1f8217af4ee2eccaaf8c25b19a (patch) | |
tree | a2a38bd2806f1ac4b1bc1b635c47ee5c43cdc9c6 /docker/Dockerfile | |
parent | 3461366285233f2b3237f4a7c88c1da58f24a53d (diff) | |
parent | f8dbc8a37ff5935408a6a71907fea4fb0f5b5e46 (diff) | |
download | vyos-build-574bfb639918cc1f8217af4ee2eccaaf8c25b19a.tar.gz vyos-build-574bfb639918cc1f8217af4ee2eccaaf8c25b19a.zip |
Merge branch 'current' of github.com:vyos/vyos-build into buster
* 'current' of github.com:vyos/vyos-build:
Docker: fix pmacct build dependencies
Packages: support --blacklist option to not build individual packages
Packages: fix missing bytes stuck in the output buffer
Docker: add package requirements to build keepalived
Docker: Use close sections when working with jessie-backports
README: adjust chapters to new VyOS package build script
Packages: extract kernel version from defaults.json
Packages: use 'make kernelversion' instead of grep magic
Packages: add bgpq3 (debian/0.1.33-1) package to build procedure
Jenkins: archive ISO and build.log artifacts
Makefile: proper handle 'make iso' error codes
Packages: remove vyatta-quagga
Packages: add ethtool (debian/1%4.19-1) package to build procedure
Packages: define custom command for vyos-strongswan
intel: adjust URL for ixgbevf 4.5.2
Replace build-submodules with Python based package builder
Remove outdated/unmaintained submodules
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r-- | docker/Dockerfile | 36 |
1 files changed, 28 insertions, 8 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile index e43c6bbd..a7d18fef 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -68,7 +68,12 @@ RUN apt-get update && apt-get install -y \ pkg-config \ debhelper \ gosu \ - live-build + live-build \ + jq + +# Package needed for mdns-repeater +RUN apt-get update && apt-get install -y \ + dh-systemd # # Building libvyosconf requires a full configured OPAM/OCaml setup @@ -116,10 +121,6 @@ RUN eval $(opam env --root=/opt/opam --set-root) && \ dpkg-buildpackage -uc -us -tc -b && \ dpkg -i ../libvyosconfig0_*_amd64.deb -# Package needed for mdns-repeater -RUN apt-get update && apt-get install -y \ - dh-systemd - # Packages needed for vyatta-cfg RUN apt-get update && apt-get install -y \ libglib2.0-dev \ @@ -141,7 +142,7 @@ RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \ libpcap-dev \ libpq-dev \ - default-libmysqlclient-dev \ + libmysqlclient-dev \ libgeoip-dev \ librabbitmq-dev \ libjansson-dev \ @@ -181,6 +182,14 @@ RUN export RTRLIB_VERSION="0.6.3" && \ cd /tmp/rtrlib-${RTRLIB_VERSION} && dpkg-buildpackage -uc -us -tc -b && \ dpkg -i ../librtr*_amd64.deb ../librtr*_all.deb +# +# Setup VyOS Debian repository +# +COPY vyos-dev.key /tmp/vyos-dev.key +RUN apt-key add /tmp/vyos-dev.key +RUN echo "deb http://dev.packages.vyos.net/repositories/current/debian/ current main" \ + > /etc/apt/sources.list.d/vyos.list + # Packages needed to build frr itself # libyang-dev packages are hsoted on dev.packages.vyos.net see # https://github.com/FRRouting/frr/blob/master/doc/developer/building-libyang.rst @@ -196,6 +205,11 @@ RUN apt-get update && apt-get install -y \ python3-pytest \ texinfo +# +# Cleanup VyOS Debian Repository +# +RUN rm -f /etc/apt/sources.list.d/vyos.list + # Packages needed for conntrack-tools RUN apt-get update && apt-get install -y \ libnetfilter-conntrack-dev \ @@ -248,6 +262,7 @@ RUN apt-get update && apt-get install -y \ dh-apparmor \ gperf \ libsystemd-dev \ + python3-stdeb \ python-setuptools # Packages needed for vyos-opennhrp @@ -258,9 +273,14 @@ RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \ xmlto -# Install packer +# Packages needed for keepalived RUN apt-get update && apt-get install -y \ - jq + libnl-3-200 \ + libnl-3-dev \ + libnl-genl-3-200 \ + libnl-genl-3-dev + +# Install packer RUN export LATEST="$(curl -s https://checkpoint-api.hashicorp.com/v1/check/packer | \ jq -r -M '.current_version')"; \ echo "url https://releases.hashicorp.com/packer/"$LATEST"/packer_"$LATEST"_linux_amd64.zip" |\ |