Enhancement: Add copy-on-write overlay mount method option #676
Labels
area/runner
Relating to errors in the runner
kind/feature-request
New feature or request
stale-exempt
Exempt from stale
Describe feature
Currently the two options are to bind or mount volumes to work with data, or copy data into the container.
Bind is risky because it is read-write and if you do an action like checkout, you will blow away your data.
Copying data, especially with a large repository, can be slow to create and may produce a large temp file.
I would like to propose a third option, which is to read-only bind the folder and add a read-write overlay mount to tmpfs (Reference: https://stackoverflow.com/a/54465442/5511129). This results in an "instant" mount of the data but allows changes to occur in multiple containers simultaneously without actually changing the local data like bind does.
Preliminary tests on both Windows and Linux show this working really well and I'm happy to PR if tagged up-for-grabs.
This option is also ideal for non-root container scenarios implemented in #666
The text was updated successfully, but these errors were encountered: