Skip to content

Commit 1d769e8

Browse files
committed
adding Singularity file
1 parent 0d42bdb commit 1d769e8

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
Singularity Python is a python module and command line tool for working with <a href="https://singularityware.github.io" target="_blank">Singularity</a> containers, specifically providing functions to visualize, package, and compare containers. Currently, most functions use Singularity on the command line, and some require sudo.
66

7+
We currently require Python > version 3 to use various timezone functions. If you are unable to install version 3.0, we provide a [Singularity.container](Singularity.container) for you to use instead. See the
8+
79
The Singularity-Python code is licensed under the MIT open source license, which is a highly permissive license that places few limits upon reuse. This ensures that the code will be usable by the greatest number of researchers, in both academia and industry. The following examples are provided:
810

911
Please see our [complete docs](https://github.com/singularityware/singularity-python/wiki)

Singularity.container

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Bootstrap: docker
2+
From: continuumio/miniconda3
3+
4+
%runscript
5+
exec /opt/conda/bin/sregistry "$@"
6+
7+
%apprun shub
8+
exec /opt/conda/bin/shub "$@"
9+
10+
%apprun sregistry
11+
exec /opt/conda/bin/sregistry "$@"
12+
13+
%labels
14+
15+
16+
%post
17+
apt-get update && apt-get install -y git
18+
19+
# Dependncies
20+
/opt/conda/bin/conda install -y numpy scikit-learn cython pandas
21+
22+
# Install Singularity Python
23+
cd /opt
24+
git clone -b development https://www.github.com/vsoch/singularity-python
25+
cd singularity-python
26+
/opt/conda/bin/pip install setuptools
27+
/opt/conda/bin/pip install -r requirements.txt
28+
/opt/conda/bin/pip install pyasn1==0.3.4
29+
/opt/conda/bin/python setup.py sdist
30+
/opt/conda/bin/python setup.py install

0 commit comments

Comments
 (0)