Also install pointcloud (#163)

* Also install pointcloud

* Build Pointcloud against PostgreSQL 12, not 11
pull/164/head
Sandro Santilli 2019-12-02 11:10:24 +01:00 zatwierdzone przez mazano
rodzic 1ddc8dfeb4
commit ae0607c7e7
4 zmienionych plików z 15 dodań i 3 usunięć

Wyświetl plik

@ -49,3 +49,15 @@ ADD setup-user.sh /
RUN chmod +x /docker-entrypoint.sh
ENTRYPOINT /docker-entrypoint.sh
# Compile and install PointCloud.
# NOTE: release 1.2.0 would not build against PostgreSQL-12:
# https://github.com/pgpointcloud/pointcloud/issues/248
RUN apt-get -y update; apt-get -y install build-essential autoconf \
postgresql-server-dev-12 libxml2-dev zlib1g-dev
RUN wget -O- \
https://github.com/pgpointcloud/pointcloud/archive/master.tar.gz \
| tar xz && \
cd pointcloud-master && \
./autogen.sh && ./configure && make && make install && \
cd .. && rm -Rf pointcloud-master

Wyświetl plik

@ -95,7 +95,7 @@ user name, password and/or default database name(or multiple databases comma sep
* -e POSTGRES_USER=<PGUSER>
* -e POSTGRES_PASS=<PGPASSWORD>
* -e POSTGRES_DBNAME=<PGDBNAME>
* -e POSTGRES_MULTIPLE_EXTENSIONS=postgis,hstore,postgis_topology # You can pass as many extensions as you need.
* -e POSTGRES_MULTIPLE_EXTENSIONS=postgis,hstore,postgis_topology,pointcloud,pointcloud_postgis # You can pass as many extensions as you need.
* -e SSL_CERT_FILE=/your/own/ssl_cert_file.pem
* -e SSL_KEY_FILE=/your/own/ssl_key_file.key
* -e SSL_CA_FILE=/your/own/ssl_ca_file.pem

Wyświetl plik

@ -19,7 +19,7 @@ services:
- POSTGRES_PASS=docker
- ALLOW_IP_RANGE=0.0.0.0/0
# Add extensions you need to be enabled by default in the DB. Default are the three specified below
- POSTGRES_MULTIPLE_EXTENSIONS=postgis,hstore,postgis_topology,ogr_fdw
- POSTGRES_MULTIPLE_EXTENSIONS=postgis,hstore,postgis_topology,ogr_fdw,pointcloud,pointcloud_postgis
ports:
- 5434:5432
restart: on-failure

Wyświetl plik

@ -95,7 +95,7 @@ if [ -z "${SSL_KEY_FILE}" ]; then
fi
if [ -z "${POSTGRES_MULTIPLE_EXTENSIONS}" ]; then
POSTGRES_MULTIPLE_EXTENSIONS='postgis,hstore,postgis_topology,postgis_raster'
POSTGRES_MULTIPLE_EXTENSIONS='postgis,hstore,postgis_topology,postgis_raster,pointcloud,pointcloud_postgis'
fi
if [ -z "${ALLOW_IP_RANGE}" ]; then