Open
Bug 1454539
Opened 6 years ago
Updated 2 years ago
./mach taskcluster-build-image errors with missing argument: DOCKER_IMAGE_PARENT
Categories
(Firefox Build System :: Task Configuration, task)
Tracking
(Not tracked)
NEW
People
(Reporter: tjr, Unassigned)
References
Details
My goal is to create a docker image that matches the TC environment as closely as possible, so I can build clang, and then use clang to build Firefox in as clean an environment as I can make.
It seems like I want either debian7-build or debian7-amd64-build. However only debian7-build has a present Dockerfile.
> ./mach taskcluster-build-image debian7-build
> Traceback (most recent call last):
> File "/home/tom/Documents/moz/mozilla-unified/taskcluster/mach_commands.py", line 438, in build_image
> build_image(image_name, tag, os.environ)
> File "/home/tom/Documents/moz/mozilla-unified/taskcluster/taskgraph/docker.py", line 82, in build_image
> docker.stream_context_tar(GECKO, image_dir, buf, '', args)
> File "/home/tom/Documents/moz/mozilla-unified/taskcluster/taskgraph/util/docker.py", line 216, in stream_context_tar
> raise Exception('missing argument: {}'.format(p))
> Exception: missing argument: DOCKER_IMAGE_PARENT
Reporter | ||
Comment 1•6 years ago
|
||
taskcluster-load-image gives a similar error.
Comment 2•6 years ago
|
||
Presently, you need to define some things via environment variables. For debian7-build, you need to define DOCKER_IMAGE_PARENT, DOCKER_IMAGE_PACKAGES and ARCH. On automation, those are derived from taskcluster/ci/docker-image/kind.yml.
Reporter | ||
Comment 3•6 years ago
|
||
It looks like DOCKER_IMAGE_PACKAGES is a context hash or a taskid[0]; which doesn't seem easy/feasible to actually figure out or set myself. I also don't know of a way to search treeherder for a job (only filter) to try and figure out the last values for these. [0] https://queue.taskcluster.net/v1/task/deb7-gdb/runs/0/artifacts/public/build/debian/Packages certainly doesn't work
Updated•5 years ago
|
Version: Version 3 → 3 Branch
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•