Skip to content

Commit

Permalink
Setup Dockerfiles for build, dev and prod usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Rapp authored and Daniel Rapp committed Apr 1, 2017
1 parent 2edce91 commit 625ae6a
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 17 deletions.
15 changes: 13 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
.git
build
dist
*.egg-info
examples
.*env
activate
.travis.yml
*.cpp
*.so
*.pkl.gz
*.png
tsne/*.so
tsne/bh_sne.cpp
tsne/bh_sne_3d.cpp
tsne/bh_sne_src/*.o
tsne/bh_sne_src/bh_tsne
tsne/bh_sne_src/bh_tsne_3d
**/*.idea
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ dist
build
eggs
parts
bin
var
sdist
develop-eggs
Expand Down
3 changes: 0 additions & 3 deletions docker/app/Dockerfile → docker/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,3 @@ RUN apt-get update && apt-get install -y \
WORKDIR /tsne
ADD . /tsne

RUN pip install -r requirements.txt

RUN pip install -e .
11 changes: 1 addition & 10 deletions docker/dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
FROM python:3.6.1
FROM tsne-base

RUN apt-get update && apt-get install -y \
libatlas-base-dev \
&& apt-get clean && \
rm -rf /var/tmp /tmp /var/lib/apt/lists/*

WORKDIR /tsne
ADD requirements.txt .

RUN pip install -r /tsne/requirements.txt
# used for test/demo
RUN pip install scikit-learn matplotlib

Expand Down
3 changes: 3 additions & 0 deletions docker/jenkins/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM tsne-base

RUN pip install -r requirements.txt
3 changes: 3 additions & 0 deletions docker/prod/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM tsne-base

RUN pip install .
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from distutils.extension import Extension

import versioneer
import numpy
from Cython.Distutils import build_ext
from Cython.Build import cythonize

Expand Down

0 comments on commit 625ae6a

Please sign in to comment.