uriloader/moz.build
author Mike Hommey <mh+mozilla@glandium.org>
Sun, 24 Dec 2017 07:51:29 +0900
changeset 452017 7b087c4f2aa7fac5900c92a0f3d37faac8bbe890
parent 397318 500a6512bcd5f03bac3e2ff0166f194909597bfb
permissions -rw-r--r--
Bug 1419638 - Allow to pass arguments to docker when building docker-images. r=dustin Ideally, we'd simply use the --build-arg docker argument along with ARG in the Dockerfile, but that's only supported from Docker API 1.21, and we're stuck on 1.18 for the moment. So we add another hack to how we handle the Dockerfile, by adding a commented syntax that allows to declare arguments to the Dockerfile. The arguments can be defined in the docker images kind.yml file through the `args` keyword. Under the hood, they are passed down to the docker image task through the environment. The mach taskcluster-build-image command then uses the corresponding values from the environment to generate a "preprocessed" Dockerfile for its context.

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

with Files('**'):
    BUG_COMPONENT = ('Firefox', 'File Handling')

DIRS += [
    'base',
    'exthandler',
    'prefetch',
]