summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-04-07 12:46:26 +0200
committerChristian Poessinger <christian@poessinger.com>2019-04-24 20:02:46 +0200
commitec609b409a74b0f531b1eba43bb09e22db76ee10 (patch)
tree0b3e099790fc5f4ab6a4b0845071dfc88fbbbc34 /docker
parentddfa418a3ed9239097e7456b1319c4c192b9742f (diff)
downloadvyos-build-ec609b409a74b0f531b1eba43bb09e22db76ee10.tar.gz
vyos-build-ec609b409a74b0f531b1eba43bb09e22db76ee10.zip
Docker: update build system to Debian Buster
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile38
-rw-r--r--docker/no--check-valid-until1
-rw-r--r--docker/sources.list4
3 files changed, 8 insertions, 35 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 36895335..9101a52e 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -16,17 +16,11 @@
# Must be run with --privileged flag, recommended to run the container with a
# volume mapped in order to easy export images
-FROM debian:jessie
+FROM debian:buster
LABEL authors="VyOS Maintainers <maintainers@vyos.io>"
ENV DEBIAN_FRONTEND noninteractive
-COPY sources.list /etc/apt/sources.list
-COPY no--check-valid-until /etc/apt/apt.conf.d/
-COPY vyos-dev.key /tmp/vyos-dev.key
-
-RUN apt-key add /tmp/vyos-dev.key
-
# Standard shell should be bash not dash
RUN echo "dash dash/sh boolean false" | debconf-set-selections && \
dpkg-reconfigure dash
@@ -69,13 +63,12 @@ RUN apt-get update && apt-get install -y \
python3-coverage \
python3-sphinx \
python3-pystache \
- pkg-config \
- debhelper
-
-RUN apt-get update && apt-get install -y -t jessie-backports \
python3-git \
python3-pip \
- gosu
+ pkg-config \
+ debhelper \
+ gosu \
+ live-build
#
# Building libvyosconf requires a full configured OPAM/OCaml setup
@@ -124,7 +117,7 @@ RUN eval $(opam env --root=/opt/opam --set-root) && \
dpkg -i ../libvyosconfig0_*_amd64.deb
# Package needed for mdns-repeater
-RUN apt-get update && apt-get install -y -t jessie-backports \
+RUN apt-get update && apt-get install -y \
dh-systemd
# Packages needed for vyatta-cfg
@@ -161,7 +154,6 @@ RUN apt-get update && apt-get install -y \
# Packages needed for kernel
RUN apt-get update && apt-get install -y \
- kernel-package \
libncurses5-dev \
flex \
bison \
@@ -224,16 +216,10 @@ RUN apt-get update && apt-get install -y \
# Packages needed for ipaddrcheck
RUN apt-get update && apt-get install -y \
+ libcidr0 \
+ libcidr-dev \
check
-# As there is no Debian Jessie/Stretch package for libcidr available but this
-# is required for ipaddrcheck we have to build it from source
-RUN git clone https://github.com/wikimedia/analytics-libcidr.git && \
- cd analytics-libcidr && \
- git checkout 026c611d90a1 && \
- dpkg-buildpackage -uc -us -tc -b && \
- dpkg -i ../libcidr*.deb
-
# Packages needed for lldpd
RUN apt-get update && apt-get install -y \
libbsd-dev \
@@ -269,14 +255,6 @@ RUN apt-get update && apt-get install -y \
RUN apt-get update && apt-get install -y \
xmlto
-# Update live-build
-RUN echo 'deb http://ftp.debian.org/debian stretch main' | tee -a /etc/apt/sources.list.d/stretch.list && \
- apt-get update && apt-get install -y -t stretch \
- live-build && \
- rm -f /etc/apt/sources.list.d/stretch.list && \
- apt-get update && \
- rm -rf /var/lib/apt/lists/*
-
# Install packer
RUN apt-get update && apt-get install -y \
jq
diff --git a/docker/no--check-valid-until b/docker/no--check-valid-until
deleted file mode 100644
index 27ed79f3..00000000
--- a/docker/no--check-valid-until
+++ /dev/null
@@ -1 +0,0 @@
-Acquire::Check-Valid-Until "0";
diff --git a/docker/sources.list b/docker/sources.list
deleted file mode 100644
index ec827988..00000000
--- a/docker/sources.list
+++ /dev/null
@@ -1,4 +0,0 @@
-deb http://deb.debian.org/debian/ jessie main
-deb http://deb.debian.org/debian-security/ jessie/updates main
-deb http://archive.debian.org/debian/ jessie-backports main
-deb http://dev.packages.vyos.net/repositories/current/debian/ current main