gecko-dev/taskcluster/docker/toolchain-build/Dockerfile
Wander Lairson Costa 1e4f81ec22 Bug 1572236: Support sccache in Google Storage r=chmanchester,dustin
With the migration from AWS to GCP, we also need to migrate sccache
buckets from S3 to Google Storage.

The problem is how we deal with regions, since there isn't an exact
correspondence on the region names between the two cloud providers.

To make the transition smoother, docker-worker (and soon generic-worker)
provides a new environment variable called TASKCLUSTER_WORKER_LOCATION,
with information about the cloud provider the task is running on. Using
this new variable, we configure sccache to use the corresponding storage
service of the cloud provider where the task runs.

The bucket names in Google Storage are shorter because GCS imposes a
limit of 30 characteres for the names.

Ref: https://github.com/taskcluster/taskcluster-rfcs/pull/148/files

Differential Revision: https://phabricator.services.mozilla.com/D44845

--HG--
extra : moz-landing-system : lando
2019-09-09 16:51:42 +00:00

48 lines
940 B
Docker

# %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 \
jq \
libbz2-dev \
libcurl4-openssl-dev \
libssl-dev \
libtool \
libucl-dev \
ninja-build \
p7zip-full \
procps \
python-pip \
python-setuptools \
python-virtualenv \
subversion \
tar \
unzip \
uuid \
uuid-dev \
wget \
zip \
zlib1g-dev