taskcluster/docker/toolchain-build/Dockerfile
author Mike Hommey <mh+mozilla@glandium.org>
Fri, 11 Jan 2019 22:29:35 +0000
changeset 453577 a58fad772b6f
parent 452054 bdaa57b4a2fd
child 466468 99fa5539c2bd
permissions -rw-r--r--
Bug 1391408 - Build minidump_stackwalk as a toolchain. r=froydnj This produces the same executables (produced for the same platforms) as those currently pulled from tooltool (modulo timestamps, maybe changes since last manifest change, etc.). Unfortunately, as of currently, the Windows variant needs to be cross-built with mingw because it doesn't compile without some POSIX APIs that MSVC/Windows SDK don't provide. One thing that is left out of this change is whether to be completely accurate with the toolchain cache hash (requiring a large list of files as resources, and making those built very frequently), whether we'd rely on manual updates, or if we should go with completely uncached tasks. This can be left for a followup, the tasks not being hooked up to be actually used by other tasks yet. Differential Revision: https://phabricator.services.mozilla.com/D16302

# %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 DOCKER_IMAGE_PACKAGES
# %ARG TASKCLUSTER_ROOT_URL
RUN /usr/local/sbin/setup_packages.sh $TASKCLUSTER_ROOT_URL $DOCKER_IMAGE_PACKAGES

RUN apt-get update && \
    apt-get install \
      autoconf \
      autoconf2.13 \
      automake \
      bison \
      build-essential \
      curl \
      cmake \
      flex \
      gawk \
      gcc-multilib \
      gnupg \
      libbz2-dev \
      libcurl4-openssl-dev \
      libssl-dev \
      libtool \
      ninja-build \
      p7zip-full \
      procps \
      python-pip \
      python-setuptools \
      python-virtualenv \
      subversion \
      tar \
      unzip \
      uuid \
      uuid-dev \
      wget \
      zip \
      zlib1g-dev