caracal-pipeline / caracal

Containerized Automated Radio Astronomy Calibration (CARACal) pipeline
GNU General Public License v2.0
28 stars 6 forks source link

Pulling STIMELA images leaves a lot of debris behind #1520

Closed mstagni closed 1 year ago

mstagni commented 1 year ago

Would it be possible to include a command when running stimela pull -s that clears directories in .apptainer or .singularity not to leave 60+ GB in the user's home?

SpheMakh commented 1 year ago

Yes, we can add a replace to replace old stimela images if a newer one is being downloaded. But this still won't clear the cache that lives in ~/.singularity or ~/.apptainer, that is not a stimela issue. I suggest you set up a routine cache purge using apptainer cache clean command, for example to clear cached files after 30 days, run:

apptainer cache clean --days 30