forked from spencerrecneps/pfb
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
53 lines (49 loc) · 1.83 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
FROM quay.io/azavea/postgis:postgres9.6-postgis2.3
MAINTAINER Azavea
ENV GIT_BRANCH_OSM2PGROUTING osm2pgrouting-2.1.0
ENV GIT_BRANCH_OSM2PGSQL 0.90.1
ENV GIT_BRANCH_QUANTILE master
ENV GIT_BRANCH_TDGTOOLS nodes
RUN set -xe && \
BUILD_DEPS=" \
postgresql-server-dev-$PG_MAJOR \
libexpat1-dev \
cmake \
libboost-all-dev make \
g++ \
zlib1g-dev \
libbz2-dev \
libpq-dev \
libgeos-dev \
libgeos++-dev \
libproj-dev \
git" \
DEPS=" \
ca-certificates \
liblua5.2-dev \
lua5.2 \
expat \
wget \
bc \
time \
parallel \
postgresql-plpython-$PG_MAJOR \
postgresql-$PG_MAJOR-pgrouting \
python-gdal \
unzip \
postgis" && \
apt-get update && apt-get install -y ${BUILD_DEPS} ${DEPS} --no-install-recommends && \
mkdir /tmp/build/ && cd /tmp/build && \
git clone --branch $GIT_BRANCH_OSM2PGROUTING https://github.com/pgRouting/osm2pgrouting.git && \
(cd osm2pgrouting && mkdir build && cmake -H. -Bbuild && cd build && make install) && \
git clone --branch $GIT_BRANCH_OSM2PGSQL https://github.com/openstreetmap/osm2pgsql.git && \
(cd osm2pgsql && mkdir build && cd build && cmake ../ && make install) && \
git clone --branch $GIT_BRANCH_QUANTILE https://github.com/tvondra/quantile.git && \
(cd quantile && make install) && \
git clone --branch $GIT_BRANCH_TDGTOOLS https://github.com/spencerrecneps/TDG-Tools.git && \
(cd TDG-Tools/TDG\ SQL\ Tools && make clean && make install) && \
cd /tmp/ && rm -rf /tmp/build/ /var/lib/apt/lists/* && \
apt-get purge -y --auto-remove ${BUILD_DEPS}
COPY setup_database.sh /docker-entrypoint-initdb.d/setup_database.sh
COPY ./ /pfb/
ENTRYPOINT /pfb/entrypoint.sh