Added crankshaft extension to PostgreSQL template
This commit is contained in:
parent
8ef276cc22
commit
0e6fe18331
@ -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 \
|
||||
|
@ -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';"
|
||||
|
Loading…
Reference in New Issue
Block a user