mhyfritz/singularity-training:fun
$ singularity pull shub://mhyfritz/singularity-training:fun
Singularity Recipe
Bootstrap: debootstrap
OSVersion: bionic
MirrorURL: http://us.archive.ubuntu.com/ubuntu/
%help
A container with a bunch of fun programs installed.
%environment
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
export PATH=/usr/games:"$PATH"
%post
apt update
apt install -y software-properties-common
apt-add-repository universe
apt update
DEBIAN_FRONTEND=noninteractive apt install -y cmatrix cowsay fortune
echo "export PATH=/usr/games:$PATH" >> "$SINGULARITY_ENVIRONMENT"
%test
export PATH=/usr/games:"$PATH"
command -v cowsay >/dev/null 2>&1 || \
{ echo >&2 "I require cowsay but it's not installed. Aborting."; exit 1; }
command -v fortune >/dev/null 2>&1 || \
{ echo >&2 "I require fortune but it's not installed. Aborting."; exit 1; }
command -v cmatrix >/dev/null 2>&1 || \
{ echo >&2 "I require cmatrix but it's not installed. Aborting."; exit 1; }
%runscript
if [ $# -eq 0 ]
then
fortune | cowsay
else
cowsay "$@"
fi
%labels
Author Michael Hall
Version v0.0.1
Collection
- Name: mhyfritz/singularity-training
- License: None
View on Datalad
Metrics
key | value |
---|---|
id | /containers/mhyfritz-singularity-training-fun |
collection name | mhyfritz/singularity-training |
branch | master |
tag | fun |
commit | 3819f9b4e87a45d0fbeadde4f37899a592d841ba |
version (container hash) | 044c73c9ba27d1b1fd8027a8b5001c05 |
build date | 2019-02-27T18:33:23.343Z |
size (MB) | 419 |
size (bytes) | 153026591 |
SIF | Download URL (please use pull with shub://) |
Datalad URL | View on Datalad |
Singularity Recipe | Singularity Recipe on Datalad |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.