]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
tests: provide a Dockerfile to build with wheezy
authorVincent Bernat <vincent@bernat.ch>
Sun, 2 Feb 2020 13:11:44 +0000 (14:11 +0100)
committerVincent Bernat <vincent@bernat.ch>
Sun, 2 Feb 2020 13:17:43 +0000 (14:17 +0100)
This is for testing with a really old userland.

tests/Dockerfile.wheezy [new file with mode: 0644]

diff --git a/tests/Dockerfile.wheezy b/tests/Dockerfile.wheezy
new file mode 100644 (file)
index 0000000..bf0aa28
--- /dev/null
@@ -0,0 +1,17 @@
+# Build on Wheezy. We use i386 because it's on amd64, it would require
+# a kernel with vsyscalls enabled.
+FROM i386/debian:wheezy
+
+RUN sed -i \
+        -e 's/deb.debian.org/archive.debian.org/' \
+        -e 's/security.debian.org/archive.debian.org/' \
+        -e '/wheezy-updates/d' \
+        /etc/apt/sources.list
+RUN apt-get -qqy -o Acquire::Check-Valid-Until=false update
+RUN apt-get -qqy install build-essential devscripts fakeroot
+
+COPY . /usr/src/lldpd
+WORKDIR /usr/src/lldpd
+
+RUN mk-build-deps -i debian/control -t "apt-get -o Debug::pkgProblemResolver=yes -qqy"
+RUN debian/rules build && fakeroot debian/rules binary