libii/ubuntu-python3-hello-world:sif

$ singularity pull shub://libii/ubuntu-python3-hello-world:sif

Singularity Recipe

From: ubuntu

%help
    #comments/helpful hints
    Test Singularity Container with a Hello World Python Script

%labels
    #metadata within container
    Creator Liberty

%environment
    #export MY_VAR=’~~~~  This is my environment variable ~~~~’

%files
    #allows us to copy files into our container
    #FILE_NAME DIRECTOR
    helloWorld.py /
    #

    helloWorld.py ~/

%test
grep -q NAME=\"Ubuntu\" /etc/os-release
    if [ $? -eq 0 ]; then
        echo "Container base is Ubuntu as expected."
    else
        echo "Container base is not Ubuntu."
    fi

%post
    #add packages
    sed -i 's/security/old-releases/g' /etc/apt/sources.list && \
    sed -i 's/archive/old-releases/g' /etc/apt/sources.list && \
    sed -i 's/cosmic-old-releases/cosmic/g' /etc/apt/sources.list && \
    apt-get update && \
    apt-get install -y vim && \
    apt-get install -y python3

%runscript
    #echo "Container was created $NOW"
    #cat /etc/lsb-release
    python ~/helloWorld.py

View on Datalad

Metrics

key value
id /containers/libii-ubuntu-python3-hello-world-sif
collection name libii/ubuntu-python3-hello-world
branch master
tag sif
commit 78ddce0b07a4b97438db7131e2fe4a065593244f
version (container hash) None
build date 2020-08-07T05:53:59.815Z
size (MB) None
size (bytes) 83890176
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.