Skip to content

Singularity

Description

singularity website

Singularity - containers without the container!

Singularity is an open source container platform designed to be simple, fast, and secure. Singularity is optimized for EPC and HPC workloads, allowing untrusted users to run untrusted containers in a trusted way.

Environment Modules

Run module spider singularity to find out what environment modules are available for this application.

Environment Variables

  • HPC_SINGULARITY_DIR - installation directory
  • HPC_SINGULARITY_BIN - executable directory
  • HPC_SINGULARITY_IMG - image directory

Additional Usage Information

Warning

Singularity is now deprecated. For an updated version, please see the Apptainer Help Page.

While Singularity Documentation is the best place to find up-to-date and detailed information about using Singularity there some HiPerGator specific details that we'd like to point out to reduce the number of warnings you see and potential pitfalls you might encounter.

Image Builds:

When building a new container image create the following directories that our Singularity install tries to automatically mount to avoid warnings or running into unavailability of those filesystems in the course of your normal work.

mkdir -p /blue /orange /scratch/local

Image Location:

The /blue Blue Storage filesystem is the best suited for container image storage since it highly performant when reading large files such as container images in parallel. You are unlikely to be able to fit container image into your /home quote, but we'd like to emphasize that you should not do it even if you can to avoid performance issues and impacting other users.

Hub Image Downloads:

When you run a container from an image stored in the Singularity Hub the container image will be downloaded to the current working directory. Make sure you run the command while on /blue filesystem and not in your home directory. E.g.

$ module load singularity
$ singularity run shub://GodloveD/lolcow
or with Docker container:
$ singularity run docker://godlovedc/lolcow
...
$ ls *.simg
GodloveD-lolcow-master.simg

Docker Hub Caching:

When you run a Docker container from Docker Hub using Singularity the contents of the container image will be cached in your home directory in the ~/.singularity/docker. You should either monitor the /home quota usage by the cache if you frequently use docker hub images or symlink that directory to your /blue directory. E.g.

ln -s /blue/my_group/$USER/singularity/ ~/.singularity
Singularity will detect the symlink and set the cache to the target directory in /blue.

Categories

workflow_automation