From 14fd038569bd43dc762dbf8ca0091993184c14bb Mon Sep 17 00:00:00 2001 From: Blottiere Paul Date: Wed, 6 May 2020 23:19:56 +0200 Subject: [PATCH 1/2] Add Dockerfile --- docker/Dockerfile | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 docker/Dockerfile diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..f0d2b2f --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,38 @@ +FROM postgres:12 +MAINTAINER Paul Blottiere + +ENV POSTGRES_VERSION 12 +ENV POSTGIS_VERSION 3 + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + postgis \ + postgresql-${POSTGRES_VERSION}-postgis-${POSTGIS_VERSION} \ + postgresql-${POSTGRES_VERSION}-postgis-${POSTGIS_VERSION}-scripts + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + git \ + ca-certificates \ + build-essential \ + autoconf \ + automake \ + zlib1g-dev \ + postgresql-server-dev-all \ + libxml2-dev \ + && rm -rf /var/lib/apt/lists/* \ + && git clone https://github.com/pgpointcloud/pointcloud \ + && cd pointcloud \ + && ./autogen.sh \ + && ./configure --with-pgconfig=/usr/lib/postgresql/${POSTGRES_VERSION}/bin/pg_config CFLAGS="-Wall -Werror -O2 -g" \ + && make \ + && make install \ + && apt-get purge -y --auto-remove \ + git \ + ca-certificates \ + build-essential \ + autoconf \ + automake \ + zlib1g-dev \ + postgresql-server-dev-all \ + libxml2-dev From 095f8edec2f388f2f3eacf4752f0ee22904e3e25 Mon Sep 17 00:00:00 2001 From: Blottiere Paul Date: Sat, 9 May 2020 16:36:39 +0200 Subject: [PATCH 2/2] Activate lazperf compression --- docker/Dockerfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index f0d2b2f..4528be8 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -17,14 +17,22 @@ RUN apt-get update \ build-essential \ autoconf \ automake \ + cmake \ zlib1g-dev \ postgresql-server-dev-all \ libxml2-dev \ && rm -rf /var/lib/apt/lists/* \ + && git clone https://github.com/verma/laz-perf.git \ + && cd laz-perf \ + && cmake . \ + && make \ + && make install \ + && cd .. \ + && rm -r laz-perf \ && git clone https://github.com/pgpointcloud/pointcloud \ && cd pointcloud \ && ./autogen.sh \ - && ./configure --with-pgconfig=/usr/lib/postgresql/${POSTGRES_VERSION}/bin/pg_config CFLAGS="-Wall -Werror -O2 -g" \ + && ./configure --with-lazperf=/usr/local --with-pgconfig=/usr/lib/postgresql/${POSTGRES_VERSION}/bin/pg_config CFLAGS="-Wall -Werror -O2 -g" \ && make \ && make install \ && apt-get purge -y --auto-remove \ @@ -33,6 +41,7 @@ RUN apt-get update \ build-essential \ autoconf \ automake \ + cmake \ zlib1g-dev \ postgresql-server-dev-all \ libxml2-dev