psychoinformatics-de / datalad-debian

DataLad extension for working with Debian packages and package repositories
Other
2 stars 5 forks source link

Build package with singularity using a temporary working dir #119

Closed mih closed 2 years ago

mih commented 2 years ago

Because we are calling singularity run with --containall and --no-home to improve isolation from the host environment, we ended up having a 16 MB tmpfs for /tmp inside the container.

Not enough for many builds, because we extract the source package inside that /tmp among other things.

This change declares a dedicated --workdir for singularity. It is pointed to a temporary directory that is automatically provided by datalad run.

With this change /tmp/build inside the container is effectively located on the host filesystem.

Closes psychoinformatics-de/datalad-debian#114