Computational-Plant-Science/3D_model_traits_demo:latest
$ singularity pull shub://Computational-Plant-Science/3D_model_traits_demo:latest
Singularity Recipe
BootStrap: docker
From: ubuntu:18.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-setuptools \
python3-pip \
python3-tk \
python3-numexpr \
python3-pil.imagetk \
libgl1-mesa-glx \
libsm6 \
libxext6
pip3 install numpy \
Pillow \
rdp \
scipy \
scikit-image \
matplotlib \
plyfile \
open3d \
opencv-python \
openpyxl
pip3 install -U scikit-learn
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
#----------------------------------------------------------
python3 --version
#python3 requirement.py
Collection
- Name: Computational-Plant-Science/3D_model_traits_demo
- License: None
View on Datalad
Metrics
key | value |
---|---|
id | /containers/Computational-Plant-Science-3D_model_traits_demo-latest |
collection name | Computational-Plant-Science/3D_model_traits_demo |
branch | master |
tag | latest |
commit | 4269ec867de33c5cb6b909f7e6a0ebc40b3f25a7 |
version (container hash) | 1445583f61611e013530c59c1f8ccfae |
build date | 2020-01-07T14:38:32.807Z |
size (MB) | 1265.0 |
size (bytes) | 558604319 |
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.