├── webpack └── Dockerfile ├── py_image_proc_queue ├── README.md └── Dockerfile ├── py_es_queue └── Dockerfile ├── py_ocr_queue └── Dockerfile ├── flask_socket_io └── Dockerfile ├── LICENSE └── opencv └── Dockerfile /webpack/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:5.6-wheezy 2 | RUN npm install webpack@1.12.6 -g -------------------------------------------------------------------------------- /py_image_proc_queue/README.md: -------------------------------------------------------------------------------- 1 | # Image processing with python3, tesseract and image magick 2 | 3 | This dockerFile install python3, imagemagick with some presets and tesseracct 4 | -------------------------------------------------------------------------------- /py_es_queue/Dockerfile: -------------------------------------------------------------------------------- 1 | RUN FROM ubuntu:14.04 2 | 3 | RUN apt-get update -y && \ 4 | apt-get install -y --force-yes curl 5 | 6 | RUN apt-get -y --force-yes install python3 python3-setuptools python3-pip python3-matplotlib cython3 zlib1g-dev make libncurses5-dev r-base libxml2-dev 7 | 8 | # Rabbitmq client 9 | RUN pip3 install pika==0.10.0 10 | RUN pip3 install pymongo==3.2.0 11 | RUN pip3 install elasticsearch==2.3.0 -------------------------------------------------------------------------------- /py_ocr_queue/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:14.04 2 | 3 | RUN apt-get update -y && \ 4 | apt-get install -y --force-yes curl 5 | 6 | RUN apt-get -y --force-yes install python3 python3-setuptools python3-pip python3-matplotlib cython3 zlib1g-dev make libncurses5-dev r-base libxml2-dev 7 | 8 | RUN apt-get install -y --force-yes tesseract-ocr tesseract-ocr-eng tesseract-ocr-por 9 | # Rabbitmq client 10 | RUN pip3 install pika==0.10.0 11 | RUN pip3 install pymongo==3.2.0 -------------------------------------------------------------------------------- /flask_socket_io/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM python:latest 2 | MAINTAINER Fabio Oliveira 3 | RUN pip3 install elasticsearch==2.1.0 4 | RUN pip3 install flask==0.10.1 5 | RUN pip3 install pika==0.10.0 6 | RUN pip3 install requests==2.9.1 7 | RUN pip3 install Flask-PyMongo==0.4.0 8 | RUN pip3 install pymongo==3.1 9 | RUN pip3 install cerberus==0.9.2 10 | RUN pip3 install bcrypt==2.0.0 11 | RUN pip3 install flask-cors==2.1.2 12 | RUN pip3 install flask-socketio==2.1 -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Fabio Oliveira Costa 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /opencv/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:14.04 2 | #Python and openCv dependencies/Requirements 3 | RUN apt-get -y update && \ 4 | apt-get upgrade -y && \ 5 | apt-get install -y --force-yes build-essential cmake git libgtk2.0-dev pkg-config libavcodec-dev \ 6 | libavformat-dev libswscale-dev libjpeg8-dev libtiff4-dev libjasper-dev libpng12-dev \ 7 | libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev \ 8 | libatlas-base-dev gfortran git python3-tk python3-numpy python3.4-dev wget 9 | 10 | ENV CV_VERSION "3.1.0" 11 | 12 | #Pip 13 | RUN wget https://bootstrap.pypa.io/get-pip.py && \ 14 | sudo python3 get-pip.py 15 | 16 | #Installing open cv from source 17 | RUN cd ~/ && git clone https://github.com/Itseez/opencv.git && cd opencv && git checkout $(CV_VERSION) 18 | RUN cd ~/ && git clone https://github.com/Itseez/opencv_contrib.git && cd opencv_contrib && git checkout $(CV_VERSION) 19 | RUN cd ~/opencv && mkdir build && cd build && \ 20 | cmake -D CMAKE_BUILD_TYPE=RELEASE \ 21 | -D CMAKE_INSTALL_PREFIX=/usr/local \ 22 | -D INSTALL_C_EXAMPLES=OFF \ 23 | -D INSTALL_PYTHON_EXAMPLES=ON \ 24 | -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \ 25 | -D BUILD_opencv_python2=OFF \ 26 | -D BUILD_EXAMPLES=ON .. && \ 27 | make -j $(nproc) && make install && ldconfig 28 | 29 | # Rabbitmq client 30 | RUN pip3 install pika==0.10.0 31 | RUN pip3 install pymongo==3.2.0 -------------------------------------------------------------------------------- /py_image_proc_queue/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:14.04 2 | 3 | RUN apt-get update -y && \ 4 | apt-get install -y --force-yes curl && \ 5 | apt-get install -y --force-yes xz-utils 6 | #PYTHON 3 7 | # remove several traces of installed python 8 | RUN apt-get -y --force-yes install python3 python3-setuptools python3-pip python3-matplotlib cython3 zlib1g-dev make libncurses5-dev r-base libxml2-dev 9 | RUN alias python=python3 10 | 11 | 12 | ENV MAGICK_VERSION 6.9.3-6 13 | 14 | RUN apt-get install -y --no-install-recommends \ 15 | libpng-dev libjpeg-dev libtiff-dev libopenjpeg-dev git \ 16 | && apt-get remove -y imagemagick 17 | 18 | RUN cd /tmp && curl -SLO "http://imagemagick.org/download/releases/ImageMagick-${MAGICK_VERSION}.tar.xz" \ 19 | && tar xf "./ImageMagick-${MAGICK_VERSION}.tar.xz" 20 | 21 | 22 | # http://www.imagemagick.org/script/advanced-unix-installation.php#configure 23 | RUN cd "/tmp/ImageMagick-${MAGICK_VERSION}" \ 24 | && ./configure \ 25 | --disable-static \ 26 | --enable-shared \ 27 | 28 | --with-jpeg \ 29 | --with-jp2 \ 30 | --with-openjp2 \ 31 | --with-png \ 32 | --with-tiff \ 33 | --with-quantum-depth=8 \ 34 | 35 | --without-magick-plus-plus \ 36 | # disable BZLIB support 37 | --without-bzlib \ 38 | # disable ZLIB support 39 | --without-zlib \ 40 | # disable Display Postscript support 41 | --without-dps \ 42 | # disable FFTW support 43 | --without-fftw \ 44 | # disable FlashPIX support 45 | --without-fpx \ 46 | # disable DjVu support 47 | --without-djvu \ 48 | # disable fontconfig support 49 | --without-fontconfig \ 50 | # disable Freetype support 51 | --without-freetype \ 52 | # disable JBIG support 53 | --without-jbig \ 54 | # disable lcms (v1.1X) support 55 | --without-lcms \ 56 | # disable lcms (v2.X) support 57 | --without-lcms2 \ 58 | # disable Liquid Rescale support 59 | --without-lqr \ 60 | # disable LZMA support 61 | --without-lzma \ 62 | # disable OpenEXR support 63 | --without-openexr \ 64 | # disable PANGO support 65 | --without-pango \ 66 | # disable WebP support 67 | --without-webp \ 68 | # disable XML support 69 | --without-xml \ 70 | && make \ 71 | && make install \ 72 | && ldconfig /usr/local/lib 73 | 74 | RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* 75 | 76 | 77 | RUN pip3 install pika==0.10.0 78 | RUN pip3 install pymongo==3.2.0 --------------------------------------------------------------------------------