summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2017-07-04 17:07:53 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2018-03-06 09:42:58 +0100
commitc7a44e7eb79e693178bf415dee6935c673e49b2c (patch)
tree6491dbd9a538b3c187de79c8920ceb1eb4b9d689 /Dockerfile
parent5c498cdb6d72f759e0e384bc7a2cdc1be75906c4 (diff)
travis: Migrate to Docker to make CI work again
This is based on 1.4.y, but with the old build system, and xenial as the base image.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 000000000..ba7bb9194
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,11 @@
+FROM ubuntu:xenial
+COPY . /tmp
+WORKDIR /tmp
+RUN sed -i s#://deb.debian.org#://cdn-fastly.deb.debian.org# /etc/apt/sources.list \
+ && apt-get update \
+ && adduser --home /home/travis travis --quiet --disabled-login --gecos "" --uid 1000 \
+ && env DEBIAN_FRONTEND=noninteractive apt-get install build-essential ccache expect curl git moreutils -q -y \
+ && env DEBIAN_FRONTEND=noninteractive ./prepare-release travis-ci \
+ && dpkg-reconfigure ccache \
+ && rm -r /tmp/* \
+ && apt-get clean