Added crankshaft extension to PostgreSQL template

This commit is contained in:
Stefan Verhoeven 2017-04-04 21:13:53 +02:00
parent 8ef276cc22
commit 0e6fe18331
2 changed files with 10 additions and 0 deletions

View File

@ -147,6 +147,14 @@ RUN sed -i 's/\(peer\|md5\)/trust/' /etc/postgresql/9.5/main/pg_hba.conf && \
createuser tileuser --no-createrole --no-createdb --no-superuser -U postgres && \
service postgresql stop
# Crankshaft: CARTO Spatial Analysis extension for PostgreSQL
RUN cd / && \
git clone https://github.com/CartoDB/crankshaft.git && \
cd /crankshaft && \
git checkout master && \
make install && \
cd ..
# Initialize template postgis db
ADD ./template_postgis.sh /tmp/template_postgis.sh
RUN service postgresql start && /bin/su postgres -c \

View File

@ -13,3 +13,5 @@ psql -d template_postgis -c "CREATE EXTENSION postgis_topology;"
psql -d template_postgis -c "GRANT ALL ON geometry_columns TO PUBLIC;"
psql -d template_postgis -c "GRANT ALL ON spatial_ref_sys TO PUBLIC;"
psql -c "CREATE EXTENSION plpythonu;"
psql -d template_postgis -c "CREATE EXTENSION plpythonu;"
psql -d template_postgis -c "CREATE EXTENSION crankshaft VERSION 'dev';"