Public Repository

Last pushed: 2 years ago
Short Description
Development Environment for Computer Vision with Python: Containing Anaconda, OpenCV, ITK and MedPy
Full Description

Development Environment for Computer Vision with Python by Patrick Bilic and Patrick Christ

Development Environment for Computer Vision with Python: Containing Anaconda, OpenCV, ITK, Swig and MedPy

Usage: docker run patrickchrist/cv-dev-env

Dockerfile:

FROM debian:7.4

MAINTAINER Patrick Bilic patbilic@gmail.com

RUN apt-get update && apt-get install -y wget bzip2 ca-certificates \
libglib2.0-0 libxext6 libsm6 libxrender1 libpcre3 libpcre3-dev
RUN echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh && \
wget --quiet https://repo.continuum.io/archive/Anaconda-2.3.0-Linux-x86_64.sh && \
/bin/bash /Anaconda-2.3.0-Linux-x86_64.sh -b -p /opt/conda && \
rm /Anaconda-2.3.0-Linux-x86_64.sh && \
/opt/conda/bin/conda install --yes conda==3.14.1

ENV PATH /opt/conda/bin:$PATH

Install git

RUN apt-get install -y git-core

Install C/C++ compiler

RUN apt-get install -y build-essential

Install pip

RUN apt-get install -y python-pip

Install ITK

RUN conda install -y -c https://conda.binstar.org/simpleitk SimpleITK

Install ccache for WrapITK (IT-Build--> Python Wrapper)

RUN apt-get install -y ccache
ENV PATH /opt/local/libexec/ccache:$PATH

Install MedPy

RUN pip install medpy

Install OpenCV

RUN conda install -y opencv

Install Swig (C/C++ -> Python Wrapper Generator)

wget http://downloads.sourceforge.net/swig/swig-3.0.5.tar.gz && \
tar -xvzf swig-3.0.5.tar.gz && cd swig-3.0.5 && \
./configure --prefix=/usr && make && make install && cd .. && \
rm -Rf swig-3.0.5 && rm swig-3.0.5.tar.gz

Install X Server

RUN export uid=0 gid=0
RUN mkdir -p /home/developer
RUN echo "developer:x:${uid}:${gid}:Developer,,,:/home/developer:/bin/bash" >> /etc/passwd
RUN echo "developer:x:${uid}:" >> /etc/group
RUN echo "developer ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
RUN chmod 0440 /etc/sudoers
RUN chown ${uid}:${gid} -R /home/developer

Create User

USER developer
ENV HOME /home/developer
WORKDIR /home/developer

Docker Pull Command
Owner
patrickchrist