Skip to content
Snippets Groups Projects

WIP: GUI version

Merged Sebastian Höffner requested to merge feature/gui into master
1 file
+ 6
3
Compare changes
  • Side-by-side
  • Inline
Dockerfile.gui 0 → 100644
+ 47
0
FROM continuumio/miniconda
ARG mmlf_version=1.0
LABEL maintainer="Sebastian Höffner <shoeffner@tzi.de>"
RUN apt-get -qq update \
&& apt-get install -y \
xfonts-base \
build-essential \
swig \
libfreetype6-dev \
libfontconfig-dev \
git \
&& apt-get clean
RUN conda install -y \
pyyaml \
numpy=1.5.1 \
scipy=0.11.0 \
matplotlib=1.1.1 \
pyqt=4 \
libpng=1.2.50
RUN curl -s https://master.dl.sourceforge.net/project/mmlf/mmlf/${mmlf_version}/mmlf-${mmlf_version}.tar.gz | gunzip - | tar xf -
# Fix mmlf
COPY *.patch mmlf-${mmlf_version}/
RUN cd mmlf-${mmlf_version} \
&& git init \
&& git config --local user.email "shoeffner@tzi.de" \
&& git config --local user.name "Sebastian Höffner" \
&& git add . \
&& git commit -m "Initial commit." \
&& git apply *.patch
# Install ANN library
RUN curl -s http://www.cs.umd.edu/~mount/ANN/Files/1.1.2/ann_1.1.2.tar.gz | gunzip - | tar xf - \
&& cd ann_1.1.2 \
&& sed -i "s/CFLAGS = -O3/CFLAGS = -fPIC -O3/g" Make-config \
&& make linux-g++ \
&& cp -r include/ANN /usr/local/include \
&& cp -r lib/libANN.a /usr/local/lib \
&& easy_install scikits.ann \
&& sed -i "s/import NumpyTest/import test/g" /opt/conda/lib/python2.7/site-packages/scikits.ann-0.2.dev_r803-py2.7-linux-x86_64.egg/scikits/ann/__init__.py \
&& sed -i "s/test = NumpyTest().test//g" /opt/conda/lib/python2.7/site-packages/scikits.ann-0.2.dev_r803-py2.7-linux-x86_64.egg/scikits/ann/__init__.py \
&& find /opt/conda/lib/python2.7/site-packages/scikits.ann-0.2.dev_r803-py2.7-linux-x86_64.egg -name \*.pyc -delete
ENV LC_ALL=en_US
WORKDIR mmlf-${mmlf_version}
Loading