зеркало из https://github.com/mozilla/gecko-dev.git
fc3f70b542
A limitation of traditional docker build context generation is it only includes files from the same directory as the Dockerfile. When repositories have multiple, related Dockerfiles, this limitation results file duplication or putting all Dockerfiles in the same directory (which isn't feasible for mozilla-central since they would need to be in the root directory). This commit enhances Dockerfiles to allow *any* file from the repository checkout to be ADDed to the docker build context. Using the syntax "# %include <path>" you are able to include paths or directories (relative from the top source directory root) in the generated context archive. Files add this way are available under the "topsrcdir/" path and can be ADDed to Docker images. Since context archive generation is deterministic and the hash of the resulting archive is used to determine when images need to be rebuilt, any extra included file that changes will change the hash of the context archive and force image regeneration. Basic tests for the new feature have been added. MozReview-Commit-ID: 4hPZesJuGQV --HG-- extra : rebase_source : 99fae9fe82102126fbee879c134981047bb4a601 |
||
---|---|---|
.. | ||
attributes.rst | ||
docker-images.rst | ||
how-tos.rst | ||
index.rst | ||
kinds.rst | ||
parameters.rst | ||
taskgraph.rst | ||
transforms.rst | ||
yaml-templates.rst |