mlampros/singularity_containers:nmslib_python
$ singularity pull shub://mlampros/singularity_containers:nmslib_python
Singularity Recipe
BootStrap: docker
From: ubuntu:18.04
%labels
Maintainer Lampros Mouselimis
NOTES Based on info of the following web-sites : https://www.sylabs.io/guides/2.5.1/user-guide.pdf, https://github.com/singularityhub/jupyter, https://vsoch.github.io/2016/singularity-web/, https://bwlewis.github.io/r-and-singularity/
%post
sed -i 's/main/main restricted universe/g' /etc/apt/sources.list
# to solve the "locale.Error: unsupported locale setting" error [https://stackoverflow.com/questions/14547631/python-locale-error-unsupported-locale-setting ]
export LC_ALL=C
apt-get -y update && apt-get -y upgrade
apt-get install -y python3 vim wget
apt-get install -y python3-pip
pip3 install --upgrade pip==9.0.3 # do this due to a problem with 'python-pip' ( SEE : https://github.com/pypa/pip/issues/5240#issuecomment-381673100 )
pip3 install jupyter
pip3 install numpy
pip3 install --upgrade scipy
apt-get install -y libboost-all-dev libgsl-dev libeigen3-dev
apt-get install -y cmake
pip3 install --upgrade pybind11
pip3 install nmslib
# clean tmp files
apt-get autoremove -y
apt-get clean
%runscript
# command to be executed when the container runs
echo "The web-browser runs on localhost:8888"
exec /usr/local/bin/jupyter notebook --allow-root --ip='*' --port=8888 --no-browser
Collection
- Name: mlampros/singularity_containers
- License: Other
View on Datalad
Metrics
key | value |
---|---|
id | /containers/mlampros-singularity_containers-nmslib_python |
collection name | mlampros/singularity_containers |
branch | master |
tag | nmslib_python |
commit | 6b047e8f8e520cbdc55cf29b346c1984ec4a1d14 |
version (container hash) | 3aef1b79c47d2244f6614cc92e47e059 |
build date | 2018-07-25T23:56:14.650Z |
size (MB) | 1280 |
size (bytes) | 442028063 |
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.