#Apptainer?

1 messages · Page 1 of 1 (latest)

elfin nacelle
#

Hello! I'm not familiar with Apptainer, can you describe how you use it, and how you envision they might work together?

barren wadi
#

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

elfin nacelle
#

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

barren wadi
elfin nacelle
#

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

barren wadi
#

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