EESSI / software-layer

Software layer of the EESSI project
https://eessi.github.io/docs/software_layer
GNU General Public License v2.0
20 stars 43 forks source link

enable mounting previous overlay-upper read-only #550

Open trz42 opened 2 months ago

trz42 commented 2 months ago

Use case for this is that we want to test software additions to a CernVM-FS repository. Typically we would first run eessi_container.sh with --access rw to make the repository writable with an overlayfs. The changes are stored in some overlay-upper directory (under some /tmp dir or in a tarball of that /tmp directory). When we want to test the additions later we can run eessi_container.sh with --resume TMPDIR_OR_TMPTARBALL. However, until now this only worked when using --access rw which would make the repository again writable, which is likely not what is wanted in a test (because in actual use /cvmfs/* mounts are read-only). In fact, the test-suite.sh run after a build job has finished, uses --access ro (read-only), but this access mode did not recognise changes in an overlay-upper directory.

This PR merges an existing overlay-upper (given via --resume ...) on top of a CernVM-FS repository. Because it only uses the lowerdir option of fuse-overlayfs the merged directory is mounted read-only.

eessi-bot-aws[bot] commented 2 months ago

Instance eessi-bot-mc-aws is configured to build:

eessi-bot-aws[bot] commented 2 months ago

Instance eessi-bot-mc-azure is configured to build: