From fc91ae1633aee81d74a567b6f7268c117424a531 Mon Sep 17 00:00:00 2001 From: Jim Rybarski Date: Fri, 21 Aug 2015 23:05:15 -0500 Subject: [PATCH] made functional testing easier --- Dockerfile | 18 +++++++++++++++--- Makefile | 4 ++-- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 969c5b1..0334d55 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,12 @@ -FROM ubuntu:15.04 +# This is just for functional testing. We install scikit-image just as a convenient way to view images. Many other +# packages could easily accomplish this. + +FROM debian:latest MAINTAINER Jim Rybarski RUN mkdir -p /var/nds2 RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ - libatlas3-base \ liblapack-dev \ libblas-dev \ python \ @@ -12,7 +14,17 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ python-dev \ python3-dev \ python-pip \ - python3-pip + python3-pip \ + libfreetype6-dev \ + python3-matplotlib \ + libfreetype6-dev \ + libpng-dev \ + libjpeg-dev \ + pkg-config \ + python3-skimage \ + && pip3 install -U cython \ + scikit-image \ + && rm -rf /var/lib/apt/lists/* COPY . /opt/nd2reader WORKDIR /opt/nd2reader diff --git a/Makefile b/Makefile index 8a6a193..a117d3f 100644 --- a/Makefile +++ b/Makefile @@ -3,10 +3,10 @@ build: docker build -t jimrybarski/nd2reader . -py2shell: +py2: docker run --rm -v ~/Documents/nd2s:/var/nd2s -it jimrybarski/nd2reader python2.7 -py3shell: +py3: docker run --rm -v ~/Documents/nd2s:/var/nd2s -it jimrybarski/nd2reader python3.4 test: build