Add volumes-from option to .gitlab-ci.yml
Description
~"feature proposal"
At the moment we have the option to use extra docker containers as services and have them linked to the build image, and this is really fantastic. In the same line of thought, how awesome would it be to be able to specify (read-only) docker images to be mounted into the build image (using volumes-from
)? Right now the volumes-from
option can only be defined globally (per runner), but not per build.
Such volumes could be used for:
- Big data containers: large data sets, test vectors (monte-carlo simulations), etc.
- Adding large tools and binaries that you don't want to
apt-get install
for every single run
Proposal
Add the volumes-from
keyword to the .gitlab-ci.yml
file, accepting a list of data volumes to be mounted on the build image. For instance:
# The base image
image: debian:jessie
# Add a number of data volumes
volumes-from:
- my-repo:5000/images/astro-package
- my-repo:5000/images/hubble-telescope-raw-data