lsx1980/image_preprocess:latest
$ singularity pull shub://lsx1980/image_preprocess:latest
Singularity Recipe
BootStrap: docker
From: ubuntu:16.04
%labels
Maintainer: Suxing Liu
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-numpy \
python-opencv
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
#python requirement.py
Collection
- Name: lsx1980/image_preprocess
- License: None
View on Datalad
Metrics
key | value |
---|---|
id | /containers/lsx1980-image_preprocess-latest |
collection name | lsx1980/image_preprocess |
branch | master |
tag | latest |
commit | b087318ec061ccc5bca6c8ad60125c98e3f6b5f2 |
version (container hash) | 4096ee9d8c76b7b142c59cd273e046c2 |
build date | 2019-06-25T18:43:29.798Z |
size (MB) | 619 |
size (bytes) | 229343263 |
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.