lsx1980/3D_model_traits_measurement:latest
$ singularity pull shub://lsx1980/3D_model_traits_measurement: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: lsx1980/3D_model_traits_measurement
- License: None
View on Datalad
Metrics
key | value |
---|---|
id | /containers/lsx1980-3D_model_traits_measurement-latest |
collection name | lsx1980/3D_model_traits_measurement |
branch | master |
tag | latest |
commit | e19d5465880fab2b557727b3a4b984ff86f63cbe |
version (container hash) | 80a490e6d1a1549a1d75a722489531f0 |
build date | 2021-01-11T17:42:53.024Z |
size (MB) | 1248.0 |
size (bytes) | 561266719 |
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.