GodloveD/lolcow-installer:latest

$ singularity pull shub://GodloveD/lolcow-installer:latest

Singularity Recipe

Bootstrap: docker
From: godlovedc/lolcow:latest

%runscript
    echo
    echo ===============================================
    echo Attempting to install lolcow in ~/lolcow
    echo ===============================================
    echo

    if [ -d "/home/$USER/lolcow" ]; then 
         echo "~/lolcow already exists"
         echo "will not overwrite"
         echo
         exit 1
    fi
  
    mkdir ~/lolcow
    cp -r GodloveD-lolcow-installer* ~/lolcow/image

    cd ~/lolcow
    cat > lolcow.sh <<"EOF"
#!/bin/bash
# if you want to bind some host directories...
# export SINGULARTY_BINDPATH=/some,/dirs,/to,/bind
dir=$(dirname  "$0")
cmd=$(basename "$0")
arg="$@"
singularity exec $dir/image $cmd $arg
EOF
    
    chmod 755 lolcow.sh

    ln -s lolcow.sh fortune
    ln -s lolcow.sh cowsay
    ln -s lolcow.sh lolcat

    cowsay 'type "export PATH=~/lolcow:$PATH" and enjoy fortune, cowsay, and lolcat!' |\
    lolcat

Collection


View on Datalad

Metrics

key value
id /containers/GodloveD-lolcow-installer-latest
collection name GodloveD/lolcow-installer
branch master
tag latest
commit 554117e7e945766d4ac30d9187c36a179326adb0
version (container hash) d0b54f0eaac4abd8771b9651f31d513b
build date 2021-03-07T10:44:31.429Z
size (MB) 253
size (bytes) 101179423
SIF Download URL (please use pull with shub://)
Datalad URL View on Datalad
Singularity Recipe Singularity Recipe on Datalad
We cannot guarantee that all containers will still exist on GitHub.