From 5a6dc575a9e09ee50de7e9ec19f98739165a689d Mon Sep 17 00:00:00 2001
From: Denis Arrivault <denis.arrivault@lif.univ-mrs.fr>
Date: Thu, 27 Apr 2017 17:14:05 +0200
Subject: [PATCH] Corrects dockerfiles

---
 .gitignore               |  5 +++++
 .gitlab-ci.yml           | 21 ++++-----------------
 docker/Dockerfile        |  9 +++------
 docker/Dockerfile_cython | 17 +++++++++--------
 4 files changed, 21 insertions(+), 31 deletions(-)

diff --git a/.gitignore b/.gitignore
index 78fa932..4eea9ed 100644
--- a/.gitignore
+++ b/.gitignore
@@ -65,6 +65,10 @@ ltfatpy.egg-info/
 .project
 .pydevproject
 
+# PyCharm #
+###########
+.idea
+
 # Ipython files #
 #################
 
@@ -89,3 +93,4 @@ LtfatPyt.egg-info/
 .cache/
 dist/
 MANIFEST
+
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5ba32b5..070115d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,7 +2,6 @@
 stages:
   - build
   - test
-  - dist
 
 # Global runner/docker image definition
 image: ubuntu:latest
@@ -30,29 +29,16 @@ build:
   tags:
     - docker
   script:
-    - python3 setup.py install
+    - pip3 install -e .
 
 # Tests 
 test:
   stage: test
   tags:
     - docker
+  dependencies:
+    - build
   script:
-    - python3 setup.py test
-  artifacts:
-    when: always
-    untracked: true
-    paths:
-      - build/
-    expire_in: 8d
-
-# Installation and test with pip
-dist:
-  stage: dist
-  tags:
-    - docker
-  script:
-    - pip3 install -e .
     - nosetests
   artifacts:
     when: always
@@ -60,3 +46,4 @@ dist:
     paths:
       - build/
     expire_in: 8d
+
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 01cc733..4065cea 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -10,9 +10,6 @@ RUN apt-get update && apt-get install -y \
     python3-pip \
     python3-tk
 RUN pip3 install --upgrade pip
-RUN pip3 install scipy matplotlib nose coverage Sphinx sphinxcontrib-bibtex 
-ADD ltfatpy-1.0.8.tar.gz /
-#RUN pip3 install -e ltfatpy-1.0.8/
-#WORKDIR ltfatpy-1.0.8
-#RUN nosetests
-#RUN python3 setup.py build_sphinx
+RUN pip3 install scipy matplotlib nose coverage pytest pytest-cov Sphinx sphinxcontrib-bibtex
+# cleanup
+RUN apt-get -qy autoremove
\ No newline at end of file
diff --git a/docker/Dockerfile_cython b/docker/Dockerfile_cython
index 99337eb..e21ee35 100644
--- a/docker/Dockerfile_cython
+++ b/docker/Dockerfile_cython
@@ -1,15 +1,16 @@
-FROM debian:jessie
+FROM ubuntu:latest
 MAINTAINER Denis Arrivault
 WORKDIR /
 RUN apt-get update && apt-get install -y \
     cmake \
     libfftw3-dev \
     liblapack-dev \
-    python \
-    python-pip \
+    python3 \
+    python3-dev \
+    python3-pip \
     cython \
-    python-matplotlib \
-    gfortran
-RUN pip install scipy coverage
-ADD ltfatpy-1.0.0.tar.gz /
-RUN pip install ltfatpy-1.0.0/
\ No newline at end of file
+    python3-tk
+RUN pip3 install --upgrade pip
+RUN pip3 install scipy matplotlib nose coverage pytest pytest-cov Sphinx sphinxcontrib-bibtex
+# cleanup
+RUN apt-get -qy autoremove
\ No newline at end of file
-- 
GitLab