Making your own Singularity image

Full documentation for creating new images can be found on the Singularity website

The main steps are:

  1. Install Singularity on your own computer (Linux laptop/desktop or virtual machine). This is needed since bootstrapping and modifying images requires superuser (root) access, and you don't have that on the NSC clusters. If you cannot install software on your own computer or run a virtual machine, you can use Singularity Hub to make images.
  2. Create a container image and bootstrap it (fill it with the operating system and applications you need)
  3. Modify the container (e.g add NSC directories /proj, /scratch/local, /software)
  4. Test the container on your own computer (usually this is possible, but if you use Infiniband or MPI it might not be possible)
  5. Copy the container image to NSC (e.g using scp)
  6. Run the container at NSC (interactively or as a batch job)

NSC recommends using the default (squashfs) image format.

A sample batch job script that uses Singularity to run an application on a full compute node for up to 24 hours:

#SBATCH -t 24:00:00
singularity exec --bind /proj:/proj /proj/myproj/myimage.sif myapplication --someoption /proj/myproj/my_input_data.dat

User Area

User support

Guides, documentation and FAQ.

Getting access

Applying for projects and login accounts.

System status

Everything OK!

No reported problems


NSC Express