2016-02-01 09:42:55 +01:00
|
|
|
|
# vim:ft=Dockerfile
|
2016-03-27 21:11:30 +02:00
|
|
|
|
# Same as travis-base.Dockerfile, but without the test suite dependencies since
|
|
|
|
|
# we only build Debian packages on Ubuntu i386, we don’t run the tests.
|
|
|
|
|
FROM i386/ubuntu:wily
|
2016-02-01 09:42:55 +01:00
|
|
|
|
|
|
|
|
|
RUN echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/docker-apt-speedup
|
|
|
|
|
# Paper over occasional network flakiness of some mirrors.
|
|
|
|
|
RUN echo 'APT::Acquire::Retries "5";' > /etc/apt/apt.conf.d/80retry
|
|
|
|
|
|
|
|
|
|
# NOTE: I tried exclusively using gce_debian_mirror.storage.googleapis.com
|
|
|
|
|
# instead of httpredir.debian.org, but the results (Fetched 123 MB in 36s (3357
|
|
|
|
|
# kB/s)) are not any better than httpredir.debian.org (Fetched 123 MB in 34s
|
|
|
|
|
# (3608 kB/s)). Hence, let’s stick with httpredir.debian.org (default) for now.
|
|
|
|
|
|
|
|
|
|
# Install mk-build-deps (for installing the i3 build dependencies),
|
|
|
|
|
# clang and clang-format-3.5 (for checking formatting and building with clang),
|
|
|
|
|
# lintian (for checking spelling errors),
|
2016-03-27 21:11:30 +02:00
|
|
|
|
RUN linux32 apt-get update && \
|
2016-02-01 09:42:55 +01:00
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
|
|
|
dpkg-dev devscripts git equivs \
|
|
|
|
|
clang clang-format-3.5 \
|
2016-03-27 21:11:30 +02:00
|
|
|
|
lintian && \
|
2016-02-01 09:42:55 +01:00
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
|
|
# Install i3 build dependencies.
|
|
|
|
|
COPY debian/control /usr/src/i3-debian-packaging/control
|
2016-03-27 21:11:30 +02:00
|
|
|
|
RUN linux32 apt-get update && \
|
2016-05-24 20:07:01 +02:00
|
|
|
|
sed -i '/^\s*libxcb-xrm-dev/d' /usr/src/i3-debian-packaging/control && \
|
2016-02-01 09:42:55 +01:00
|
|
|
|
DEBIAN_FRONTEND=noninteractive mk-build-deps --install --remove --tool 'apt-get --no-install-recommends -y' /usr/src/i3-debian-packaging/control && \
|
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
2016-05-08 12:55:27 +02:00
|
|
|
|
|
|
|
|
|
# Install xcb-util-xrm. This is a workaround until it is available in the
|
|
|
|
|
# distribution packages.
|
|
|
|
|
RUN apt-get update && \
|
2016-05-25 07:49:14 +02:00
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends xutils-dev ca-certificates autoconf automake autotools-dev libtool
|
2016-05-08 12:55:27 +02:00
|
|
|
|
RUN git clone --recursive https://github.com/Airblader/xcb-util-xrm.git && \
|
|
|
|
|
cd xcb-util-xrm && \
|
|
|
|
|
./autogen.sh --prefix=/usr && \
|
|
|
|
|
make && \
|
|
|
|
|
make install && \
|
|
|
|
|
cd -
|