act icon indicating copy to clipboard operation
act copied to clipboard

Enhancement: Add copy-on-write overlay mount method option

Open JustinGrote opened this issue 4 years ago • 2 comments

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 https://github.com/nektos/act/pull/666

JustinGrote avatar May 07 '21 01:05 JustinGrote

I'm also having issues with this, as I have a project with a gbs of data in git-lfs, which takes a while to copy.

ukd1 avatar May 22 '21 18:05 ukd1

Issue is stale and will be closed in 14 days unless there is new activity

github-actions[bot] avatar Jun 22 '21 00:06 github-actions[bot]