iem71/singularityRecipe:py

$ singularity pull shub://iem71/singularityRecipe:py

Singularity Recipe

BootStrap: yum
OSVersion: 7
MirrorURL: http://mirror.centos.org/centos-%{OSVERSION}/%{OSVERSION}/os/$basearch/
Include: yum wget
# best to build up container using kickstart mentality. 
# ie, to add more packages to image,
# re-run bootstrap command again. 
# bootstrap on existing image will build on top of it, not overwriting it/restarting from scratch
# singularity .def file is like kickstart file
# unix commands can be run, but if there is any error, the bootstrap process ends
%setup
   # commands to be executed on host outside container during bootstrap
%post
    # commands to be executed inside container during bootstrap
    # add python and install some packages
    yum -y install vim wget python epel-release
    yum -y install python-pip
     # install tensorflow
    pip install --upgrade pip
    pip install tensorflow==1.2.1
    pip install numpy==1.14
    pip install opencv-python
     # create bind points for storage.
     mkdir /extra
     mkdir /xdisk
     exit 0
 %runscript
   # commands to be executed when the container runs
   echo "Arguments received: $*"
   exec /usr/bin/python "$@"
 %test
   # commands to be executed within container at close of bootstrap process
   python --version

Collection


View on Datalad

Metrics

key value
id /containers/iem71-singularityRecipe-py
collection name iem71/singularityRecipe
branch master
tag py
commit d411d9bb5779725eb92029d63afac3e3fa8fcbd5
version (container hash) b7e3ab6ce2045b0d2cfdd62e42b10e65
build date 2019-05-19T23:23:12.175Z
size (MB) None
size (bytes) 334159903
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.