taskcluster/docker/debian-build/Dockerfile
author Oana Pop Rus <opoprus@mozilla.com>
Thu, 28 Mar 2019 15:13:13 +0200
changeset 528426 4e2ea1a75e878ae392e4775f2eddd9f83d1b008e
parent 528352 99fa5539c2bda621abac134300428129969b2cdf
child 530172 97fa367562a0f8faa9a3413f24a6542b16407c5d
permissions -rw-r--r--
Backed out 3 changesets (bug 1458385) for windows partial bustages. a=backout Backed out changeset 8036c03c3b51 (bug 1458385) Backed out changeset 99fa5539c2bd (bug 1458385) Backed out changeset 9a5f255979c2 (bug 1458385)

# %ARG DOCKER_IMAGE_PARENT
FROM $DOCKER_IMAGE_PARENT
MAINTAINER Mike Hommey <mhommey@mozilla.com>

VOLUME /builds/worker/checkouts
VOLUME /builds/worker/workspace
VOLUME /builds/worker/tooltool-cache

ENV XZ_OPT=-T0

# %ARG TASKCLUSTER_ROOT_URL
# %ARG DOCKER_IMAGE_PACKAGES
RUN /usr/local/sbin/setup_packages.sh $TASKCLUSTER_ROOT_URL $DOCKER_IMAGE_PACKAGES

# %ARG ARCH
RUN dpkg --add-architecture $ARCH

# Ideally, we wouldn't need gcc-multilib and the extra linux-libc-dev,
# but the latter is required to make the former installable, and the former
# because of bug 1409276.
# We exclude /usr/share/doc/*/changelog.Debian* files because they might differ
# between i386 and amd64 variants of the packages we build on automation
# because of dates stored in them by debchange (and both might end up installed
# in some cases).
# On Debian 7, pkg-config was not multiarch-aware, so we rely on the $ARCH
# pkg-config being valid on the host. On more recent versions of Debian, we can
# use pkg-config, which is multiarch-aware, but we also need dpkg-dev because
# of https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916772.
RUN apt-get update && \
    echo path-exclude=/usr/share/doc/*/changelog.Debian* > /etc/dpkg/dpkg.cfg.d/excludes && \
    if grep -q ^7\\. /etc/debian_version; then \
      BACKPORT=/wheezy-backports; \
      PKG_CONFIG=pkg-config:$ARCH; \
    else \
      PKG_CONFIG="pkg-config dpkg-dev"; \
    fi && \
    apt-get install \
      autoconf2.13 \
      automake \
      bzip2 \
      curl \
      file \
      gawk \
      gcc-multilib \
      gnupg \
      p7zip-full \
      procps \
      python-pip \
      python-setuptools \
      python-virtualenv \
      rsync \
      screen \
      tar \
      unzip \
      uuid \
      valgrind \
      wget \
      x11-utils \
      xvfb \
      yasm$BACKPORT \
      zip \
      linux-libc-dev$BACKPORT \
      linux-libc-dev:$ARCH$BACKPORT \
      $PKG_CONFIG \
      libdbus-glib-1-dev:$ARCH \
      libfontconfig1-dev:$ARCH \
      libfreetype6-dev:$ARCH \
      libgconf2-dev:$ARCH \
      libgtk-3-dev:$ARCH \
      libgtk2.0-dev:$ARCH \
      libpango1.0-dev:$ARCH \
      libpulse-dev:$ARCH \
      libx11-xcb-dev:$ARCH \
      libxt-dev:$ARCH

# Add wrapper scripts for xvfb allowing tasks to easily retry starting up xvfb
# %include taskcluster/docker/recipes/xvfb.sh
COPY topsrcdir/taskcluster/docker/recipes/xvfb.sh /builds/worker/scripts/xvfb.sh