mach-nix icon indicating copy to clipboard operation
mach-nix copied to clipboard

Add singularity support

Open IllustratedMan-code opened this issue 3 years ago • 1 comments

It would be amazing if there could be a mkSingularityImage function for singularity containers.

As far as I can tell, implementation will be very similar to the existing mkDockerImage function that already exists. There is a very similar nix package to dockerTools called singularity-tools in the nixpkgs repository.

the buildImage function in singularity-tools is used in a very similar way to the existing implementation here

IllustratedMan-code avatar Jun 15 '22 20:06 IllustratedMan-code

The singularity-tool is currently under refactoring (https://github.com/NixOS/nixpkgs/pull/158486 , https://github.com/NixOS/nixpkgs/issues/177908). A Singularity / Apptainer definition file generator and a definition-based buildImage would be added in a future PR (https://github.com/NixOS/nixpkgs/pull/158486#issuecomment-1104146591 , https://github.com/NixOS/nixpkgs/pull/158486#issuecomment-1104865584) if things work out as expected.

We could also try to think of a way to generate a Singularity / Apptainer definition.

ShamrockLee avatar Jun 18 '22 10:06 ShamrockLee