#Apptainer?
1 messages · Page 1 of 1 (latest)
Hello! I'm not familiar with Apptainer, can you describe how you use it, and how you envision they might work together?
I (partially) migrated from Docker to Apptainer a while ago since it's slightly better for HPC tasks (not requiring a root daemon and a few other convenience-related things)
apptainer run <image.sif> <command> is how I would run an Apptainer "image"
To build the images, Apptainer uses "definition files" with sections (%post, %environment, %runscript ...etc) that are similar to Dockerfiles but look more like regular shell scripts.
The image format is not compatible with OCI but is convertible
So I thought Dagger can be used to describe workflows to build Apptainer images in the same way it builds Docker stuff
In fact, using Dagger to produce Docker images (Docker is also better for dev. envs.) and then convert is viable
It's just annoying to lose all environment settings
I see. If the build tool can be run in a container (likely given your description) then you should be able to wrap it in dagger functions. Perhaps someone has already published a module for this? worth checking daggerverse.dev
I remember that someone did something similar for singularity, it seemed to work fine
https://daggerverse.dev/mod/github.com/shykes/x/singularity@710496046596b60b1ec5e65f670c1f3b562c130e
yeah, just got it; apptainer is kind of the same as singularity so it should work; thanks!
mmm that's my module, I think I only did it as a quick proof of concept to help that user. You can use it as a starting point but beware aware that it's not a prod-ready implementation
yeah, I already have an e xtensive configuration system, just need to translate it to Dagger functions similar to the module
Will probably provide my configuration as a module too if it works well for me