alex-chunhui-yang/container:tf2b1
$ singularity pull shub://alex-chunhui-yang/container:tf2b1
Singularity Recipe
Bootstrap: docker
From: tensorflow/tensorflow:2.0.0b1-gpu-py3
# adapted from: https://github.com/marcc-hpc/tensorflow
%environment
# use bash as default shell
SHELL=/bin/bash
export SHELL
export HDF5_USE_FILE_LOCKING='FALSE'
%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
# make environment file executable
chmod +x /environment
# default mount paths
mkdir /scratch
# fix this issue: https://github.com/singularityware/singularity/issues/1182#issuecomment-381796545
touch /usr/bin/nvidia-smi
apt-get update && apt-get -y install locales
locale-gen en_US.UTF-8
apt-get install -y git wget
apt-get clean
# scikit, scipy
apt-get install -y python3-scipy
apt-get install -y python3-sklearn
apt-get install -y python3-sklearn-lib
# PIL (pillow for python 3)
#python3-dev python3-pip python3-tk cmake
pip install Pillow
pip install matplotlib
# SimpleITK
pip install simpleitk
#comet
pip install comet_ml
#pandas
pip install pandas
pip install spektral
#pip install tables #pytables
#pip install nilearn
#pip install nibabel
%runscript
# executes with the singularity run command
# delete this section to use existing docker ENTRYPOINT command
%test
# test that script is a success
Collection
- Name: alex-chunhui-yang/container
- License: None
View on Datalad
Metrics
key | value |
---|---|
id | /containers/alex-chunhui-yang-container-tf2b1 |
collection name | alex-chunhui-yang/container |
branch | master |
tag | tf2b1 |
commit | ff5ed3c2a906beaf39c573400259661216a60e8a |
version (container hash) | 3162bddc22ff4e7ac0b460c04dc462a693f4606aafa958ce34055501746c4823 |
build date | 2020-09-25T03:44:27.692Z |
size (MB) | 2085.54296875 |
size (bytes) | 2186850304 |
SIF | Download URL (please use pull with shub://) |
Datalad URL | View on Datalad |
Singularity Recipe | Singularity Recipe on Datalad |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.