dmorrill10/research2018:cpu

$ singularity pull shub://dmorrill10/research2018:cpu

Singularity Recipe

Bootstrap: docker
From: tensorflow/tensorflow:1.12.0-rc2-py3

%help

To install python libraries after this image is built, create a virtual environment that uses the system packages with `virtualenv --system-site-packages venv && source venv/bin/activate`, then use `pip` as usual.


%environment
  # use bash as default shell
  SHELL=/bin/bash
  export SHELL

%setup
  # runs on host - the path to the image is $SINGULARITY_ROOTFS

%post
  # post-setup script

  # load environment variables
  . /environment

  # use bash as default shell
  echo 'SHELL=/bin/bash' >> /environment
  chmod +x /environment

  # default mount paths
  mkdir -p /scratch /data /usr/bin

  apt-get update
  apt-get install ca-certificates curl
  apt-get clean

  curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
  python get-pip.py
  pip install numpy virtualenv

%runscript
  # executes with the singularity run command
  # delete this section to use existing docker ENTRYPOINT command

%test
  # test that script is a success

Collection


View on Datalad

Metrics

key value
id /containers/dmorrill10-research2018-cpu
collection name dmorrill10/research2018
branch master
tag cpu
commit 26d55be36b9ee1ca64fd5674a380214c15e971d3
version (container hash) 69811e98a06ecaee823564af4696a552
build date 2018-11-01T21:55:11.797Z
size (MB) 1364
size (bytes) 495312927
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.