author Mike Hommey <>
Sun, 24 Dec 2017 07:51:29 +0900
changeset 452017 7b087c4f2aa7fac5900c92a0f3d37faac8bbe890
parent 257581 07479758ab6870988d3165990e8d4b468628aeba
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.

# This Makefile is used as a shim to aid people with muscle memory
# so that they can type "make".
# This file and all of its targets should not be used by anything important.

all: build

	./mach build

	./mach clobber

.PHONY: all build clean