I'm trying to understand how docker containers can access the repository of the project they are run in as part of the pipeline.
Specifically, in .gitlab-ci.yml
file I can, for example, copy files from the root of my project into the docker container that is running with a simple cp
command (let's say to run some tests on the code that I copied from my repo and into the container). --> How is it possible that I can freely copy files into the docker container ?
Is it set by default in Gitlab ?
From what I know there is a need to map volumes in order to be able to copy files from local host to docker but in Gitlab it seems that they are shared. Does the container in the pipeline actually have access to my entire project no matter how big it is ?
I couldn't find any documentation regarding this specific subject