Computational-Plant-Science/HairyRoots:latest

$ singularity pull shub://Computational-Plant-Science/HairyRoots:latest

Singularity Recipe

BootStrap: docker
From: ubuntu:16.04

%labels
  Maintainer: Peter
  Version v1.01

%setup
  #----------------------------------------------------------------------
  # commands to be executed on host outside container during bootstrap
  #----------------------------------------------------------------------
  mkdir ${SINGULARITY_ROOTFS}/opt/code/

%files
  ./* /opt/code/

%post
  #----------------------------------------------------------
  # Install common dependencies and create default entrypoint,
  # commands to be executed inside container during bootstrap
  #----------------------------------------------------------
  # Install dependencies
  apt update
  apt install -y \
    build-essential \
    python3 \
    python-setuptools \
    python-scipy \
    python-matplotlib \
    ipython \
    ipython-notebook \
    python-pandas \
    python-sympy \
    python-pip \
    python-nose \
    python-numpy \
    python-sklearn \
    python-pil \
    

  pip install --upgrade pip
  
  /usr/local/bin/pip install -U numpy 
  
  /usr/local/bin/pip install scikit-image \
                                scikit-learn \
                                networkx \
                                pillow


  mkdir /lscratch /db /work /scratch
  
  chmod -R a+rwx /opt/code/
  
%environment
  #----------------------------------------------------------
  # Setup environment variables
  #----------------------------------------------------------
  PYTHONPATH=$PYTHONPATH:/opt/code/
  export PATH
  LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/code/
  export LD_LIBRARY_PATH

%runscript
  #----------------------------------------------------------
  # Run scripts inside container
  #----------------------------------------------------------
   # 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/Computational-Plant-Science-HairyRoots-latest
collection name Computational-Plant-Science/HairyRoots
branch master
tag latest
commit dc13d4a2911250041f667eb2654abb0455ca060a
version (container hash) c5cfca09f92bc3114ee50f387d5b440b
build date 2019-06-24T14:47:57.070Z
size (MB) 3337
size (bytes) 1788383263
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.