Singularity

drawing

Load the Module#

$ module load singularity

Pull From Docker#

$ singularity pull docker://ubuntu:16.04

Execute#

Usage: singularity [global options...] exec [exec options...] <container> <command>

$ singularity exec ubuntu_16.04.sif bash

Build From a Custom Recipe#

  • Create your recipe file
$ nano recipe
BootStrap: debootstrap
OSVersion: trusty
MirrorURL: http://us.archive.ubuntu.com/ubuntu/
%runscript
echo "The Big Brother is watching you..."
%post
echo "Hello from inside the container"
sed -i 's/$/ universe/' /etc/apt/sources.list
apt-get update
apt-get -y install vim
apt-get clean
  • Create a link directing to an endpoint's (e.g., SylabsCloud ) authentication token, then build the container.
$ singularity remote login
$ singularity build --remote ubuntu.sif recipe