oliviermattelaer/singularity-recipe:cowsay
$ singularity pull shub://oliviermattelaer/singularity-recipe:cowsay
Singularity Recipe
BootStrap: debootstrap
OSVersion: stable
MirrorURL: http://ftp.us.debian.org/debian/
%runscript
echo "This is what happens when you run the container..."
infile=
outfile=
usage() {
>&2 echo "Usage:"
>&2 echo "$SINGULARITY_NAME -i <infile> -o <outfile> [ -- <cowsay options> ]"
exit 1
}
while getopts i:o: argument
do
case $argument in
i)
infile="$OPTARG"
;;
o)
outfile="$OPTARG"
;;
?)
usage
;;
esac
done
shift "$((OPTIND - 1))"
if [ -z "$infile" ] || [ -z "$outfile" ]
then
usage
fi
cat "$infile" | cowsay "$@" > "$outfile"
%post
echo "Hello from inside the container"
apt-get update
apt-get -y install fortune cowsay lolcat
# apt-get clean
%labels
author Olivier Mattelaer
%environment
export PATH=$PATH:/usr/games
export LC_ALL=C
Collection
- Name: oliviermattelaer/singularity-recipe
- License: None
View on Datalad
Metrics
key | value |
---|---|
id | /containers/oliviermattelaer-singularity-recipe-cowsay |
collection name | oliviermattelaer/singularity-recipe |
branch | master |
tag | cowsay |
commit | a9c6e9777ede248f6447ec8e3f3ecc2dd6316f7e |
version (container hash) | 6e1a5e8b4a4049925f50f60fb0067255 |
build date | 2018-10-30T15:18:48.362Z |
size (MB) | 353 |
size (bytes) | 152510495 |
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.