GNU/Linux ◆ xterm-256color ◆ bash 3469 views

Example to create an octave image! TLDR:

  singularity create --size 4000 octave.img
  singularity import docker://schickling/octave

or put in a bootstrap spec to add custom mounts for your cluster (if they don’t have a latest version of Singularity installed that creates mounts in the container on the fly) Here is the bootstrap spec:

  Bootstrap: docker
  From: schickling/octave

 %runscript
     exec octave "$@"

  %post
        mkdir -p /scratch/PI
        mkdir -p /share/PI

and the commands:

  singularity create --size 4000 octave.img
  singularity bootstrap octave.img Singularity