Skip to content

Commit 0929dfd

Browse files
committed
adding examples Dockerfiles
1 parent db3ce5a commit 0929dfd

File tree

5 files changed

+71
-0
lines changed

5 files changed

+71
-0
lines changed

examples/docker/.dockerignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
examples/*
2+
examples
3+
build
4+
*.simg
5+
*.img
6+
dist
7+
*.egg.info

examples/docker/Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM continuumio/miniconda3
2+
3+
# docker build -t vanessa/singularity-python .
4+
5+
ENV PATH /opt/conda/bin:$PATH
6+
LABEL maintainer [email protected]
7+
8+
RUN apt-get update && apt-get install -y git && \
9+
/opt/conda/bin/conda install -y numpy scikit-learn cython pandas
10+
11+
WORKDIR /opt
12+
RUN git clone -b development https://www.github.com/vsoch/singularity-python
13+
WORKDIR singularity-python
14+
RUN /opt/conda/bin/pip install setuptools && \
15+
/opt/conda/bin/pip install -r requirements.txt && \
16+
/opt/conda/bin/pip install pyasn1==0.4.1 && \
17+
/opt/conda/bin/python setup.py sdist && \
18+
/opt/conda/bin/python setup.py install

examples/docker/Dockerfile.shub

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM vanessa/singularity-python:2.4.1
2+
LABEL VERSION 2.4.1
3+
CMD ["/opt/conda/bin/shub"]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM vanessa/singularity-python:2.4.1
2+
LABEL VERSION 2.4.1
3+
CMD ["/opt/conda/bin/sregistry"]

examples/docker/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Docker images
2+
3+
These docker images are meant to provide a client for [Singularity Hub](Dockerfile.shub)
4+
and [Singularity Registry](Dockerfile.sregistry), respectively. These images are provided on [Docker Hub](https://hub.docker.com/r/vanessa/singularity-python/).
5+
6+
7+
## Singuarity Python Base
8+
9+
**build**
10+
```
11+
docker build -t vanessa/singularity-python .
12+
docker tag vanessa/singularity-python vanessa/singularity-python:2.4.1
13+
docker push vanessa/singularity-python:2.4.1
14+
```
15+
16+
## Singularity Client
17+
18+
**build**
19+
```
20+
docker build -f Dockerfile.shub -t vanessa/singularity-python:shub-2.4.1 .
21+
docker push vanessa/singularity-python:shub-2.4.1
22+
```
23+
24+
**usage**
25+
```
26+
docker run vanessa/singularity-python:shub-2.4.1
27+
```
28+
29+
## Singularity Registry Client
30+
31+
**build**
32+
```
33+
docker build -f Dockerfile.sregistry -t vanessa/singularity-python:sreg-2.4.1 .
34+
docker push vanessa/singularity-python:sreg-2.4.1
35+
```
36+
37+
**usage**
38+
```
39+
docker run vanessa/singularity-python:sreg-2.4.1
40+
```

0 commit comments

Comments
 (0)