March 27th 2020
Feel free to put questions up in chat as we go along, and I'll try to answer
John Hodrien
Is this a familiar conversation?
$ singularity run shub://GodloveD/lolcow
From DockerHub (recipe):
$ singularity run docker://godlovedc/lolcow
$ singularity pull shub://GodloveD/lolcow
$ singularity run lolcow_latest.sif
A simple definition for creating an image
# Basic Singularity.def
BootStrap: docker
From: ubuntu:16.04
%post
apt-get -y update
apt-get -y install fortune cowsay lolcat
%environment
export LC_ALL=C
export PATH=/usr/games:$PATH
%runscript
fortune | cowsay | lolcat
Cleaning up what you've done
$ singularity cache list
$ singularity cache clean
$ rm lolcow_latest.sif
Test all this code out yourself using the containers_examples directory in the GitHub Repo for this presentation
$ vagrant up
$ singularity pull shub://icaoberg/singularity-gnuplot
$ singularity run --app gnuplot singularity-gnuplot_latest.sif
$ singularity build bastet Singularity.def
You're going to need sudo/root/vagrant at this point.
$ singularity run --nv tensorflow_1.14.0-gpu-py3.sif ./bench.py
$ singularity shell singularity-gnuplot_latest.sif
$ singularity shell -B /nobackup:/nobackup singularity-gnuplot_latest.sif