forked from vightel/ojo-processing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
73 lines (60 loc) · 1.7 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
##
# ojo/processing
#
# Pat Cappelaere, Vightel Corporation
#
# GDAL 2.0.0
# Node.js v.0.12.2
#
# Ubuntu 14.04 Trusty Tahyr
FROM ubuntu:trusty
MAINTAINER Pat Cappelaere <[email protected]>
# Install basic dependencies
RUN apt-get update -y && apt-get install -y \
software-properties-common \
python-software-properties \
build-essential \
python-dev \
python-numpy \
libspatialite-dev \
sqlite3 \
libpq-dev \
libcurl4-gnutls-dev \
libtiff5-dev \
libproj-dev \
libxml2-dev \
libgeos-dev \
libnetcdf-dev \
libpoppler-dev \
libspatialite-dev \
libhdf4-alt-dev \
libhdf5-serial-dev \
wget unzip zip
# Get GDAL, Compile and install
ADD ./install_gdal2.sh /tmp/
RUN sh /tmp/install_gdal2.sh
# Potrace
RUN apt-get install -y potrace
# Imagemagick
RUN apt-get install -y imagemagick
RUN apt-get install -y curl git git-core
# Node
RUN curl -sL https://deb.nodesource.com/setup_0.12 | bash -
RUN apt-get install -y nodejs
RUN npm -g install topojson nodemon foreman
# Install Python libraries
RUN apt-get install -y python-pip python-numpy python-scipy python-nose python-psycopg2 python-dateutil python-argparse python-boto python-grib python-pyproj
RUN pip install PPyGIS
# Install Pytrmm
COPY ./pytrmm-0.1.0.tar.gz /tmp/pytrmm-0.1.0.tar.gz
RUN cd /tmp \
&& tar -xzvf pytrmm-0.1.0.tar.gz \
&& cd pytrmm-0.1.0 \
&& python setup.py install
# NOTE: you may have to tweak if you use another target platform than Heroku
#
# copy env file and add a source instruction to .bash_profile
# this will be execute when we login (as root)
COPY ./envs.docker.sh /root/envs.docker.sh
COPY ./bash_profile /root/.bash_profile
# Only one command suggested when issuing a run