Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
Load postgis-vt-util functions
Browse files Browse the repository at this point in the history
* Load postgis-vt-util functions

* Add ca-certificates into build

* Fixup cmds
  • Loading branch information
stirringhalo authored Apr 13, 2017
1 parent 6ce7576 commit b06a5ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ ENV POSTGIS_MAJOR=2.3 \
RUN apt-get -y update \
&& apt-get -y --no-install-recommends install \
curl \
wget \
ca-certificates \
build-essential cmake \
# PostGIS build dependencies
postgresql-server-dev-$PG_MAJOR libxml2-dev libjson0-dev libproj-dev libgdal-dev \
Expand All @@ -28,5 +30,10 @@ RUN curl -o /opt/postgis.tar.gz http://download.osgeo.org/postgis/source/postgis
&& make install \
&& ldconfig

ENV VT_UTIL_DIR=/opt/postgis-vt-util \
VT_UTIL_URL="https://raw.githubusercontent.com/mapbox/postgis-vt-util/v1.1.0/postgis-vt-util.sql"

RUN mkdir -p $VT_UTIL_DIR && wget -P $VT_UTIL_DIR "$VT_UTIL_URL"

##&& (cd /opt/postgis/extensions/postgis && make -j && make install) \
COPY ./initdb-postgis.sh /docker-entrypoint-initdb.d/10_postgis.sh
1 change: 1 addition & 0 deletions initdb-postgis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ function create_postgis_extension() {
function main() {
create_template_postgis
create_postgis_extension
execute_sql_into_template "$VT_UTIL_DIR/postgis-vt-util.sql"
}

main

0 comments on commit b06a5ce

Please sign in to comment.