postgis / docker-postgis

Docker image for PostGIS
https://hub.docker.com/r/postgis/postgis/
MIT License
1.37k stars 463 forks source link

after build the dockerfile,the docker container don't running #168

Closed liyin37 closed 4 years ago

liyin37 commented 4 years ago

use the dockerfile to build: https://github.com/postgis/docker-postgis/tree/master/11-2.5 the docker cmd is: docker run -t --name postgis -e POSTGRES_PASSWORD=admin@123 -p 5432:5432 -d postgis:11-2.5 then the error is : /docker-entrypoint-initdb.d/postgis.sh: line 17: --dbname=template_postgis: command not found image

smellman commented 4 years ago

@liyin37 I can run this image following on my mac.

$  docker run -t --name postgis -e POSTGRES_PASSWORD=admin@123 -p 5432:5432 -d postgis/postgis:11-2.5
a24586a80e563107ca099a54198e5e92064b400a788ff15f9a6695bd09fde3d6
$ docker ps
CONTAINER ID        IMAGE                    COMMAND                  CREATED             STATUS              PORTS                    NAMES
a24586a80e56        postgis/postgis:11-2.5   "docker-entrypoint.s…"   21 seconds ago      Up 20 seconds       0.0.0.0:5432->5432/tcp   postgis
$ docker logs a24586a80e56
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".

Data page checksums are disabled.

fixing permissions on existing directory /var/lib/postgresql/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default timezone ... Etc/UTC
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok

WARNING: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.

Success. You can now start the database server using:

    pg_ctl -D /var/lib/postgresql/data -l logfile start

waiting for server to start....2020-02-13 03:00:26.429 UTC [46] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2020-02-13 03:00:26.448 UTC [47] LOG:  database system was shut down at 2020-02-13 03:00:26 UTC
2020-02-13 03:00:26.452 UTC [46] LOG:  database system is ready to accept connections
 done
server started

/usr/local/bin/docker-entrypoint.sh: sourcing /docker-entrypoint-initdb.d/postgis.sh
CREATE DATABASE
UPDATE 1
Loading PostGIS extensions into template_postgis
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
Loading PostGIS extensions into postgres
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION

waiting for server to shut down...2020-02-13 03:00:31.006 UTC [46] LOG:  received fast shutdown request
.2020-02-13 03:00:31.008 UTC [46] LOG:  aborting any active transactions
2020-02-13 03:00:31.011 UTC [46] LOG:  background worker "logical replication launcher" (PID 53) exited with exit code 1
2020-02-13 03:00:31.027 UTC [48] LOG:  shutting down
2020-02-13 03:00:31.228 UTC [46] LOG:  database system is shut down
 done
server stopped

PostgreSQL init process complete; ready for start up.

2020-02-13 03:00:31.326 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2020-02-13 03:00:31.326 UTC [1] LOG:  listening on IPv6 address "::", port 5432
2020-02-13 03:00:31.331 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2020-02-13 03:00:31.347 UTC [83] LOG:  database system was shut down at 2020-02-13 03:00:31 UTC
2020-02-13 03:00:31.353 UTC [1] LOG:  database system is ready to accept connections

What is your environment?

liyin37 commented 4 years ago

my environment is CentOS7.6,but I want to change the Dockerfile,add some .so file in it,so I must build it myself,How to change the error: /docker-entrypoint-initdb.d/postgis.sh: line 17: --dbname=template_postgis: command not found

liyin37 commented 4 years ago

and,when I use your cmd to run contanier but failed image I don't search postgis/postgis:11-2.5

smellman commented 4 years ago

Please paste your current Dockerfile. Note: postgis/postgis:11-2.5 is build by make command.

liyin37 commented 4 years ago

the Dockerfile is: FROM postgres:11

LABEL maintainer="PostGIS Project - https://postgis.net"

ENV POSTGIS_MAJOR 2.5 ENV POSTGIS_VERSION 2.5.3+dfsg-3.pgdg90+1

RUN apt-get update \ && apt-cache showpkg postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \ && apt-get install -y --no-install-recommends \ postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR=$POSTGIS_VERSION \ postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR-scripts=$POSTGIS_VERSION \ && rm -rf /var/lib/apt/lists/*

RUN mkdir -p /docker-entrypoint-initdb.d COPY ./PGSQLEngine.so /usr/lib/postgresql/11/lib COPY ./st_geometry.so /usr/lib/postgresql/11/lib COPY ./initdb-postgis.sh /docker-entrypoint-initdb.d/postgis.sh COPY ./update-postgis.sh /usr/local/bin

ImreSamu commented 4 years ago

@liyin37 :

liyin37 commented 4 years ago

the others don't chaged,for example the initdb-postgis.sh and update-postgis.sh image

smellman commented 4 years ago

@liyin37 If you remove following line, can you docker run?

COPY ./PGSQLEngine.so /usr/lib/postgresql/11/lib
COPY ./st_geometry.so /usr/lib/postgresql/11/lib
liyin37 commented 4 years ago

docker version: image the postgres:11 is the latest image

liyin37 commented 4 years ago

just now,I remove the 2 line: COPY ./PGSQLEngine.so /usr/lib/postgresql/11/lib COPY ./st_geometry.so /usr/lib/postgresql/11/lib then build again: [root@docker postgis-12]# docker build -t postgis:test . Sending build context to Docker daemon 12.82MB Step 1/8 : FROM postgres:12 ---> cf879a45faaa Step 2/8 : LABEL maintainer="PostGIS Project - https://postgis.net" ---> Using cache ---> cbf1dc0d309b Step 3/8 : ENV POSTGIS_MAJOR 2.5 ---> Using cache ---> efabfb522b6c Step 4/8 : ENV POSTGIS_VERSION 2.5.3+dfsg-3.pgdg100+1 ---> Using cache ---> 2a2251d70f7f Step 5/8 : RUN apt-get update && apt-cache showpkg postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR && apt-get install -y --no-install-recommends postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR=$POSTGIS_VERSION postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR-scripts=$POSTGIS_VERSION && rm -rf /var/lib/apt/lists/* ---> Using cache ---> 0a0ee9ae8d64 Step 6/8 : RUN mkdir -p /docker-entrypoint-initdb.d ---> Using cache ---> 034399f26db4 Step 7/8 : COPY ./initdb-postgis.sh /docker-entrypoint-initdb.d/postgis.sh ---> c794d9c57ed4 Step 8/8 : COPY ./update-postgis.sh /usr/local/bin ---> 0d774ec22d98 Successfully built 0d774ec22d98 Successfully tagged postgis:test

docker run -it --rm postgis:test [root@docker postgis-12]# docker run -it --rm postgis:test


WARNING: No password has been set for the database. This will allow anyone with access to the Postgres port to access your database. In Docker's default configuration, this is effectively any other container on the same system.

     Use "-e POSTGRES_PASSWORD=password" to set
     it in "docker run".

The files belonging to this database system will be owned by user "postgres". This user must also own the server process.

The database cluster will be initialized with locale "en_US.utf8". The default database encoding has accordingly been set to "UTF8". The default text search configuration will be set to "english".

Data page checksums are disabled.

fixing permissions on existing directory /var/lib/postgresql/data ... ok creating subdirectories ... ok selecting dynamic shared memory implementation ... posix selecting default max_connections ... 100 selecting default shared_buffers ... 128MB selecting default time zone ... Etc/UTC creating configuration files ... ok running bootstrap script ... ok performing post-bootstrap initialization ... ok syncing data to disk ... ok

initdb: warning: enabling "trust" authentication for local connections You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.

Success. You can now start the database server using:

pg_ctl -D /var/lib/postgresql/data -l logfile start

waiting for server to start....2020-02-13 03:26:35.565 UTC [45] LOG: starting PostgreSQL 12.1 (Debian 12.1-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit 2020-02-13 03:26:35.566 UTC [45] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" 2020-02-13 03:26:35.587 UTC [46] LOG: database system was shut down at 2020-02-13 03:26:35 UTC 2020-02-13 03:26:35.592 UTC [45] LOG: database system is ready to accept connections done server started

/usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/postgis.sh Loading PostGIS extensions into template_postgis /docker-entrypoint-initdb.d/postgis.sh: line 17: --dbname=template_postgis: command not found

the same error

smellman commented 4 years ago

@liyin37 Which is this problem for postgis 12-2.5 or 11-2.5?

ImreSamu commented 4 years ago

Strange; I have different hashes ... 0b4b85e22843 for postgis:11-2.5

$ docker images | grep postgis | grep 11 | grep 2.5
postgis/postgis                   11-2.5              0b4b85e22843        6 minutes ago       467MB
$ docker images | grep postgres | grep 11 
postgres                          11                  2c963c0eb8c6        10 days ago         332MB

my hashes for an input files

/docker-postgis/11-2.5$ sha256sum *
sha256sum: alpine: Is a directory
983343d72d4502fdf5e17844f4e9967287110f40f4d6525c1f3266b0a1635dd9  Dockerfile
c91a52f8333e9d6fb814235dc2d7bd533761743b1485e924cdee3599ea04aa0e  initdb-postgis.sh
d6cb9278db7215f2c65c10e6075961490dabdcc93c6615eaea78ffa9030f319e  README.md
ffb6a41cff824c8187a321feb0776cfe81bd3b27948acaf4d3c1532fd8cdbebf  update-postgis.sh
liyin37 commented 4 years ago

I download them here ,no change the other line ,only add 2 line: COPY ./PGSQLEngine.so /usr/lib/postgresql/11/lib COPY ./st_geometry.so /usr/lib/postgresql/11/lib image

smellman commented 4 years ago

@liyin37 Please do docker pull postgres:11 and build.

ImreSamu commented 4 years ago

@liyin37 :

only add 2 line:

Please rebuild .. and show the new image hashes ...

ImreSamu commented 4 years ago

@liyin37 :

liyin37 commented 4 years ago

[root@docker 11-2.5]# docker build --no-cache --pull -t postgis:11-2.5 . Sending build context to Docker daemon 16.9kB Step 1/8 : FROM postgres:11 11: Pulling from library/postgres Digest: sha256:6f2062ab11d720f4756f17da4d0a64534346cce33b7cdea9d7ac4f43eed9fc02 Status: Image is up to date for postgres:11 ---> 2c963c0eb8c6 Step 2/8 : LABEL maintainer="PostGIS Project - https://postgis.net" ---> Running in 4749417a7c86 Removing intermediate container 4749417a7c86 ---> 2bb98ac96922 Step 3/8 : ENV POSTGIS_MAJOR 2.5 ---> Running in f9472cd18c53 Removing intermediate container f9472cd18c53 ---> 7991fa132605 Step 4/8 : ENV POSTGIS_VERSION 2.5.3+dfsg-3.pgdg90+1 ---> Running in 229589ee2298 Removing intermediate container 229589ee2298 ---> f9b89e410510 Step 5/8 : RUN apt-get update && apt-cache showpkg postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR && apt-get install -y --no-install-recommends postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR=$POSTGIS_VERSION postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR-scripts=$POSTGIS_VERSION && rm -rf /var/lib/apt/lists/* ---> Running in eed4af3f2266 Get:1 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB] Ign:2 http://deb.debian.org/debian stretch InRelease Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB] Get:4 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [517 kB] Get:5 http://apt.postgresql.org/pub/repos/apt stretch-pgdg InRelease [51.4 kB] Get:6 http://deb.debian.org/debian stretch Release [118 kB] Get:7 http://deb.debian.org/debian stretch-updates/main amd64 Packages [27.9 kB] Get:8 http://deb.debian.org/debian stretch Release.gpg [2,410 B] Get:9 http://deb.debian.org/debian stretch/main amd64 Packages [7,083 kB] Get:10 http://apt.postgresql.org/pub/repos/apt stretch-pgdg/11 amd64 Packages [2,585 B] Get:11 http://apt.postgresql.org/pub/repos/apt stretch-pgdg/main amd64 Packages [211 kB] Fetched 8,199 kB in 54s (151 kB/s) Reading package lists... Package: postgresql-11-postgis-2.5 Versions: 2.5.3+dfsg-3.pgdg90+1 (/var/lib/apt/lists/apt.postgresql.org_pub_repos_apt_dists_stretch-pgdg_main_binary-amd64_Packages.lz4) Description Language: File: /var/lib/apt/lists/apt.postgresql.org_pub_repos_apt_dists_stretch-pgdg_main_binary-amd64_Packages.lz4 MD5: 9644687edef0c323059284467775c0c4

Reverse Depends: postgresql-11-postgis-2.5-dbgsym,postgresql-11-postgis-2.5 2.5.3+dfsg-3.pgdg90+1 postgresql-11-postgis-2.5-scripts,postgresql-11-postgis-2.5 Dependencies: 2.5.3+dfsg-3.pgdg90+1 - postgresql-11 (0 (null)) postgresql-11-postgis-2.5-scripts (0 (null)) libc6 (2 2.14) libgdal20 (2 2.0.1) libgeos-c1v5 (2 3.7.0) libjson-c3 (2 0.11) liblwgeom-2.5-0 (2 2.5.0~beta1) libpcre3 (0 (null)) libproj12 (2 4.9.0) libprotobuf-c1 (2 1.0.1) libsfcgal1 (2 1.2.0) libxml2 (2 2.7.4) postgis (3 1.2.1) postgis (0 (null)) Provides: 2.5.3+dfsg-3.pgdg90+1 - postgresql-postgis (= ) postgresql-11-postgis (= ) Reverse Provides: Reading package lists... Building dependency tree... Reading state information... The following additional packages will be installed: fontconfig-config fonts-dejavu-core libaec0 libarmadillo7 libarpack2 libblas-common libblas3 libboost-atomic1.62.0 libboost-chrono1.62.0 libboost-date-time1.62.0 libboost-filesystem1.62.0 libboost-program-options1.62.0 libboost-serialization1.62.0 libboost-system1.62.0 libboost-test1.62.0 libboost-thread1.62.0 libboost-timer1.62.0 libcgal13 libcurl3-gnutls libdap23 libdapclient6v5 libdapserver7v5 libepsilon1 libfontconfig1 libfreetype6 libfreexl1 libgdal20 libgeos-3.7.1 libgeos-c1v5 libgeotiff2 libgfortran3 libgif7 libgmpxx4ldbl libhdf4-0-alt libhdf5-100 libidn2-0 libjbig0 libjpeg62-turbo libjson-c3 libkmlbase1 libkmlconvenience1 libkmldom1 libkmlengine1 libkmlregionator1 libkmlxsd1 liblapack3 liblcms2-2 liblwgeom-2.5-0 libminizip1 libmpfr4 libnetcdf11 libnghttp2-14 libnspr4 libnss3 libodbc1 libogdi3.2 libopenjp2-7 libpng16-16 libpoppler64 libproj12 libprotobuf-c1 libpsl5 libqhull7 libquadmath0 librtmp1 libsfcgal1 libspatialite7 libssh2-1 libsuperlu5 libsz2 libtiff5 liburiparser1 libwebp6 libxerces-c3.1 odbcinst odbcinst1debian2 proj-data Suggested packages: geotiff-bin gdal-bin libgeotiff-epsg libhdf4-doc libhdf4-alt-dev hdf4-tools liblcms2-utils libmyodbc odbc-postgresql tdsodbc unixodbc-bin ogdi-bin proj-bin postgis Recommended packages: ca-certificates proj-bin poppler-data publicsuffix The following NEW packages will be installed: fontconfig-config fonts-dejavu-core libaec0 libarmadillo7 libarpack2 libblas-common libblas3 libboost-atomic1.62.0 libboost-chrono1.62.0 libboost-date-time1.62.0 libboost-filesystem1.62.0 libboost-program-options1.62.0 libboost-serialization1.62.0 libboost-system1.62.0 libboost-test1.62.0 libboost-thread1.62.0 libboost-timer1.62.0 libcgal13 libcurl3-gnutls libdap23 libdapclient6v5 libdapserver7v5 libepsilon1 libfontconfig1 libfreetype6 libfreexl1 libgdal20 libgeos-3.7.1 libgeos-c1v5 libgeotiff2 libgfortran3 libgif7 libgmpxx4ldbl libhdf4-0-alt libhdf5-100 libidn2-0 libjbig0 libjpeg62-turbo libjson-c3 libkmlbase1 libkmlconvenience1 libkmldom1 libkmlengine1 libkmlregionator1 libkmlxsd1 liblapack3 liblcms2-2 liblwgeom-2.5-0 libminizip1 libmpfr4 libnetcdf11 libnghttp2-14 libnspr4 libnss3 libodbc1 libogdi3.2 libopenjp2-7 libpng16-16 libpoppler64 libproj12 libprotobuf-c1 libpsl5 libqhull7 libquadmath0 librtmp1 libsfcgal1 libspatialite7 libssh2-1 libsuperlu5 libsz2 libtiff5 liburiparser1 libwebp6 libxerces-c3.1 odbcinst odbcinst1debian2 postgresql-11-postgis-2.5 postgresql-11-postgis-2.5-scripts proj-data 0 upgraded, 79 newly installed, 0 to remove and 8 not upgraded. Need to get 35.1 MB of archives. After this operation, 138 MB of additional disk space will be used. Get:1 http://deb.debian.org/debian stretch/main amd64 fonts-dejavu-core all 2.37-1 [1,068 kB] Get:2 http://apt.postgresql.org/pub/repos/apt stretch-pgdg/main amd64 libcgal13 amd64 4.13-1~pgdg90+1 [335 kB] Get:3 http://deb.debian.org/debian stretch/main amd64 fontconfig-config all 2.11.0-6.7 [271 kB] Get:4 http://deb.debian.org/debian stretch/main amd64 libaec0 amd64 0.3.2-1 [18.5 kB] Get:5 http://deb.debian.org/debian stretch/main amd64 libquadmath0 amd64 6.3.0-18+deb9u1 [131 kB] Get:6 http://deb.debian.org/debian stretch/main amd64 libgfortran3 amd64 6.3.0-18+deb9u1 [265 kB] Get:7 http://deb.debian.org/debian stretch/main amd64 libblas-common amd64 3.7.0-2 [14.2 kB] Get:8 http://deb.debian.org/debian stretch/main amd64 libblas3 amd64 3.7.0-2 [155 kB] Get:9 http://deb.debian.org/debian stretch/main amd64 liblapack3 amd64 3.7.0-2 [2,141 kB] Get:10 http://deb.debian.org/debian stretch/main amd64 libarpack2 amd64 3.4.0-1+b1 [96.1 kB] Get:11 http://deb.debian.org/debian stretch/main amd64 libsuperlu5 amd64 5.2.1+dfsg1-2 [160 kB] Get:12 http://deb.debian.org/debian stretch/main amd64 libarmadillo7 amd64 1:7.600.2+dfsg-2 [81.8 kB] Get:13 http://deb.debian.org/debian stretch/main amd64 libboost-atomic1.62.0 amd64 1.62.0+dfsg-4 [30.5 kB] Get:14 http://deb.debian.org/debian stretch/main amd64 libboost-system1.62.0 amd64 1.62.0+dfsg-4 [32.4 kB] Get:15 http://deb.debian.org/debian stretch/main amd64 libboost-chrono1.62.0 amd64 1.62.0+dfsg-4 [36.0 kB] Get:16 http://deb.debian.org/debian stretch/main amd64 libboost-date-time1.62.0 amd64 1.62.0+dfsg-4 [42.9 kB] Get:17 http://deb.debian.org/debian stretch/main amd64 libboost-filesystem1.62.0 amd64 1.62.0+dfsg-4 [63.2 kB] Get:18 http://deb.debian.org/debian stretch/main amd64 libboost-program-options1.62.0 amd64 1.62.0+dfsg-4 [159 kB] Get:19 http://deb.debian.org/debian stretch/main amd64 libboost-serialization1.62.0 amd64 1.62.0+dfsg-4 [125 kB] Get:20 http://deb.debian.org/debian stretch/main amd64 libboost-timer1.62.0 amd64 1.62.0+dfsg-4 [34.5 kB] Get:21 http://deb.debian.org/debian stretch/main amd64 libboost-test1.62.0 amd64 1.62.0+dfsg-4 [254 kB] Get:22 http://deb.debian.org/debian stretch/main amd64 libboost-thread1.62.0 amd64 1.62.0+dfsg-4 [71.5 kB] Get:23 http://deb.debian.org/debian stretch/main amd64 libidn2-0 amd64 0.16-1+deb9u1 [60.7 kB] Get:24 http://deb.debian.org/debian stretch/main amd64 libnghttp2-14 amd64 1.18.1-1+deb9u1 [79.2 kB] Get:25 http://deb.debian.org/debian stretch/main amd64 libpsl5 amd64 0.17.0-3 [41.8 kB] Get:26 http://deb.debian.org/debian stretch/main amd64 librtmp1 amd64 2.4+20151223.gitfa8646d.1-1+b1 [60.4 kB] Get:27 http://deb.debian.org/debian stretch/main amd64 libssh2-1 amd64 1.7.0-1+deb9u1 [139 kB] Get:28 http://deb.debian.org/debian stretch/main amd64 libcurl3-gnutls amd64 7.52.1-5+deb9u9 [290 kB] Get:29 http://deb.debian.org/debian stretch/main amd64 libdap23 amd64 3.18.2-2+deb9u1 [526 kB] Get:30 http://deb.debian.org/debian stretch/main amd64 libdapclient6v5 amd64 3.18.2-2+deb9u1 [193 kB] Get:31 http://deb.debian.org/debian stretch/main amd64 libdapserver7v5 amd64 3.18.2-2+deb9u1 [121 kB] Get:32 http://deb.debian.org/debian stretch/main amd64 libepsilon1 amd64 0.9.2+dfsg-2 [42.2 kB] Get:33 http://deb.debian.org/debian stretch/main amd64 libpng16-16 amd64 1.6.28-1+deb9u1 [280 kB] Get:34 http://deb.debian.org/debian stretch/main amd64 libfreetype6 amd64 2.6.3-3.2+deb9u1 [438 kB] Get:35 http://deb.debian.org/debian stretch/main amd64 libfontconfig1 amd64 2.11.0-6.7+b1 [331 kB] Get:36 http://deb.debian.org/debian stretch/main amd64 libfreexl1 amd64 1.0.2-2+deb9u2 [34.1 kB] Get:37 http://deb.debian.org/debian stretch/main amd64 proj-data all 4.9.3-1 [4,069 kB] Get:38 http://apt.postgresql.org/pub/repos/apt stretch-pgdg/main amd64 libgeos-3.7.1 amd64 3.7.1-1~pgdg90+1 [728 kB] Get:39 http://deb.debian.org/debian stretch/main amd64 libproj12 amd64 4.9.3-1 [183 kB] Get:40 http://deb.debian.org/debian stretch/main amd64 libjbig0 amd64 2.1-3.1+b2 [31.0 kB] Get:41 http://deb.debian.org/debian stretch/main amd64 libjpeg62-turbo amd64 1:1.5.1-2 [134 kB] Get:42 http://deb.debian.org/debian stretch/main amd64 libtiff5 amd64 4.0.8-2+deb9u4 [238 kB] Get:43 http://deb.debian.org/debian stretch/main amd64 libgeotiff2 amd64 1.4.2-2+b1 [74.5 kB] Get:44 http://deb.debian.org/debian stretch/main amd64 libgif7 amd64 5.1.4-0.4 [43.1 kB] Get:45 http://deb.debian.org/debian stretch/main amd64 libhdf4-0-alt amd64 4.2.12-3 [276 kB] Get:46 http://deb.debian.org/debian stretch/main amd64 libsz2 amd64 0.3.2-1 [5,730 B] Get:47 http://deb.debian.org/debian stretch/main amd64 libhdf5-100 amd64 1.10.0-patch1+docs-3+deb9u1 [1,282 kB] Get:48 http://deb.debian.org/debian stretch/main amd64 libjson-c3 amd64 0.12.1-1.1 [25.8 kB] Get:49 http://deb.debian.org/debian stretch/main amd64 libminizip1 amd64 1.1-8+b1 [20.4 kB] Get:50 http://deb.debian.org/debian stretch/main amd64 liburiparser1 amd64 0.8.4-1+deb9u1 [42.2 kB] Get:51 http://deb.debian.org/debian stretch/main amd64 libkmlbase1 amd64 1.3.0-3 [48.0 kB] Get:52 http://deb.debian.org/debian stretch/main amd64 libkmldom1 amd64 1.3.0-3 [176 kB] Get:53 http://deb.debian.org/debian stretch/main amd64 libkmlengine1 amd64 1.3.0-3 [79.0 kB] Get:54 http://deb.debian.org/debian stretch/main amd64 libkmlconvenience1 amd64 1.3.0-3 [48.1 kB] Get:55 http://deb.debian.org/debian stretch/main amd64 libkmlregionator1 amd64 1.3.0-3 [24.0 kB] Get:56 http://deb.debian.org/debian stretch/main amd64 libkmlxsd1 amd64 1.3.0-3 [35.3 kB] Get:57 http://deb.debian.org/debian stretch/main amd64 libnetcdf11 amd64 1:4.4.1.1-2 [334 kB] Get:58 http://deb.debian.org/debian stretch/main amd64 libodbc1 amd64 2.3.4-1 [214 kB] Get:59 http://deb.debian.org/debian stretch/main amd64 libogdi3.2 amd64 3.2.0+ds-2 [227 kB] Get:60 http://deb.debian.org/debian stretch/main amd64 libopenjp2-7 amd64 2.1.2-1.1+deb9u4 [122 kB] Get:61 http://deb.debian.org/debian stretch/main amd64 liblcms2-2 amd64 2.8-4+deb9u1 [143 kB] Get:62 http://deb.debian.org/debian stretch/main amd64 libnspr4 amd64 2:4.12-6 [117 kB] Get:63 http://deb.debian.org/debian stretch/main amd64 libnss3 amd64 2:3.26.2-1.1+deb9u1 [1,161 kB] Get:64 http://apt.postgresql.org/pub/repos/apt stretch-pgdg/main amd64 libgeos-c1v5 amd64 3.7.1-1~pgdg90+1 [297 kB] Get:65 http://deb.debian.org/debian stretch/main amd64 libpoppler64 amd64 0.48.0-2+deb9u2 [1,287 kB] Get:66 http://deb.debian.org/debian stretch/main amd64 libqhull7 amd64 2015.2-2 [194 kB] Get:67 http://deb.debian.org/debian stretch/main amd64 libspatialite7 amd64 4.3.0a-5+b1 [1,232 kB] Get:68 http://deb.debian.org/debian stretch/main amd64 libwebp6 amd64 0.5.2-1 [235 kB] Get:69 http://deb.debian.org/debian stretch/main amd64 libxerces-c3.1 amd64 3.1.4+debian-2+deb9u1 [842 kB] Get:70 http://deb.debian.org/debian stretch/main amd64 odbcinst amd64 2.3.4-1 [43.5 kB] Get:71 http://deb.debian.org/debian stretch/main amd64 odbcinst1debian2 amd64 2.3.4-1 [75.2 kB] Get:72 http://deb.debian.org/debian stretch/main amd64 libgdal20 amd64 2.1.2+dfsg-5 [5,017 kB] Get:73 http://apt.postgresql.org/pub/repos/apt stretch-pgdg/main amd64 libsfcgal1 amd64 1.3.6-2~pgdg90+1 [1,719 kB] Get:74 http://deb.debian.org/debian stretch/main amd64 libgmpxx4ldbl amd64 2:6.1.2+dfsg-1 [22.2 kB] Get:75 http://deb.debian.org/debian stretch/main amd64 libmpfr4 amd64 3.1.5-1 [556 kB] Get:76 http://deb.debian.org/debian stretch/main amd64 libprotobuf-c1 amd64 1.2.1-2 [25.0 kB] Get:77 http://apt.postgresql.org/pub/repos/apt stretch-pgdg/main amd64 liblwgeom-2.5-0 amd64 2.5.3+dfsg-3.pgdg90+1 [735 kB] Get:78 http://apt.postgresql.org/pub/repos/apt stretch-pgdg/main amd64 postgresql-11-postgis-2.5-scripts all 2.5.3+dfsg-3.pgdg90+1 [1,339 kB] Get:79 http://apt.postgresql.org/pub/repos/apt stretch-pgdg/main amd64 postgresql-11-postgis-2.5 amd64 2.5.3+dfsg-3.pgdg90+1 [3,336 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 35.1 MB in 8min 43s (67.0 kB/s) Selecting previously unselected package fonts-dejavu-core. (Reading database ... 13656 files and directories currently installed.) Preparing to unpack .../00-fonts-dejavu-core_2.37-1_all.deb ... Unpacking fonts-dejavu-core (2.37-1) ... Selecting previously unselected package fontconfig-config. Preparing to unpack .../01-fontconfig-config_2.11.0-6.7_all.deb ... Unpacking fontconfig-config (2.11.0-6.7) ... Selecting previously unselected package libaec0:amd64. Preparing to unpack .../02-libaec0_0.3.2-1_amd64.deb ... Unpacking libaec0:amd64 (0.3.2-1) ... Selecting previously unselected package libquadmath0:amd64. Preparing to unpack .../03-libquadmath0_6.3.0-18+deb9u1_amd64.deb ... Unpacking libquadmath0:amd64 (6.3.0-18+deb9u1) ... Selecting previously unselected package libgfortran3:amd64. Preparing to unpack .../04-libgfortran3_6.3.0-18+deb9u1_amd64.deb ... Unpacking libgfortran3:amd64 (6.3.0-18+deb9u1) ... Selecting previously unselected package libblas-common. Preparing to unpack .../05-libblas-common_3.7.0-2_amd64.deb ... Unpacking libblas-common (3.7.0-2) ... Selecting previously unselected package libblas3. Preparing to unpack .../06-libblas3_3.7.0-2_amd64.deb ... Unpacking libblas3 (3.7.0-2) ... Selecting previously unselected package liblapack3. Preparing to unpack .../07-liblapack3_3.7.0-2_amd64.deb ... Unpacking liblapack3 (3.7.0-2) ... Selecting previously unselected package libarpack2. Preparing to unpack .../08-libarpack2_3.4.0-1+b1_amd64.deb ... Unpacking libarpack2 (3.4.0-1+b1) ... Selecting previously unselected package libsuperlu5:amd64. Preparing to unpack .../09-libsuperlu5_5.2.1+dfsg1-2_amd64.deb ... Unpacking libsuperlu5:amd64 (5.2.1+dfsg1-2) ... Selecting previously unselected package libarmadillo7. Preparing to unpack .../10-libarmadillo7_1%3a7.600.2+dfsg-2_amd64.deb ... Unpacking libarmadillo7 (1:7.600.2+dfsg-2) ... Selecting previously unselected package libboost-atomic1.62.0:amd64. Preparing to unpack .../11-libboost-atomic1.62.0_1.62.0+dfsg-4_amd64.deb ... Unpacking libboost-atomic1.62.0:amd64 (1.62.0+dfsg-4) ... Selecting previously unselected package libboost-system1.62.0:amd64. Preparing to unpack .../12-libboost-system1.62.0_1.62.0+dfsg-4_amd64.deb ... Unpacking libboost-system1.62.0:amd64 (1.62.0+dfsg-4) ... Selecting previously unselected package libboost-chrono1.62.0:amd64. Preparing to unpack .../13-libboost-chrono1.62.0_1.62.0+dfsg-4_amd64.deb ... Unpacking libboost-chrono1.62.0:amd64 (1.62.0+dfsg-4) ... Selecting previously unselected package libboost-date-time1.62.0:amd64. Preparing to unpack .../14-libboost-date-time1.62.0_1.62.0+dfsg-4_amd64.deb ... Unpacking libboost-date-time1.62.0:amd64 (1.62.0+dfsg-4) ... Selecting previously unselected package libboost-filesystem1.62.0:amd64. Preparing to unpack .../15-libboost-filesystem1.62.0_1.62.0+dfsg-4_amd64.deb ... Unpacking libboost-filesystem1.62.0:amd64 (1.62.0+dfsg-4) ... Selecting previously unselected package libboost-program-options1.62.0:amd64. Preparing to unpack .../16-libboost-program-options1.62.0_1.62.0+dfsg-4_amd64.deb ... Unpacking libboost-program-options1.62.0:amd64 (1.62.0+dfsg-4) ... Selecting previously unselected package libboost-serialization1.62.0:amd64. Preparing to unpack .../17-libboost-serialization1.62.0_1.62.0+dfsg-4_amd64.deb ... Unpacking libboost-serialization1.62.0:amd64 (1.62.0+dfsg-4) ... Selecting previously unselected package libboost-timer1.62.0:amd64. Preparing to unpack .../18-libboost-timer1.62.0_1.62.0+dfsg-4_amd64.deb ... Unpacking libboost-timer1.62.0:amd64 (1.62.0+dfsg-4) ... Selecting previously unselected package libboost-test1.62.0:amd64. Preparing to unpack .../19-libboost-test1.62.0_1.62.0+dfsg-4_amd64.deb ... Unpacking libboost-test1.62.0:amd64 (1.62.0+dfsg-4) ... Selecting previously unselected package libboost-thread1.62.0:amd64. Preparing to unpack .../20-libboost-thread1.62.0_1.62.0+dfsg-4_amd64.deb ... Unpacking libboost-thread1.62.0:amd64 (1.62.0+dfsg-4) ... Selecting previously unselected package libcgal13:amd64. Preparing to unpack .../21-libcgal13_4.13-1~pgdg90+1_amd64.deb ... Unpacking libcgal13:amd64 (4.13-1~pgdg90+1) ... Selecting previously unselected package libidn2-0:amd64. Preparing to unpack .../22-libidn2-0_0.16-1+deb9u1_amd64.deb ... Unpacking libidn2-0:amd64 (0.16-1+deb9u1) ... Selecting previously unselected package libnghttp2-14:amd64. Preparing to unpack .../23-libnghttp2-14_1.18.1-1+deb9u1_amd64.deb ... Unpacking libnghttp2-14:amd64 (1.18.1-1+deb9u1) ... Selecting previously unselected package libpsl5:amd64. Preparing to unpack .../24-libpsl5_0.17.0-3_amd64.deb ... Unpacking libpsl5:amd64 (0.17.0-3) ... Selecting previously unselected package librtmp1:amd64. Preparing to unpack .../25-librtmp1_2.4+20151223.gitfa8646d.1-1+b1_amd64.deb ... Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d.1-1+b1) ... Selecting previously unselected package libssh2-1:amd64. Preparing to unpack .../26-libssh2-1_1.7.0-1+deb9u1_amd64.deb ... Unpacking libssh2-1:amd64 (1.7.0-1+deb9u1) ... Selecting previously unselected package libcurl3-gnutls:amd64. Preparing to unpack .../27-libcurl3-gnutls_7.52.1-5+deb9u9_amd64.deb ... Unpacking libcurl3-gnutls:amd64 (7.52.1-5+deb9u9) ... Selecting previously unselected package libdap23:amd64. Preparing to unpack .../28-libdap23_3.18.2-2+deb9u1_amd64.deb ... Unpacking libdap23:amd64 (3.18.2-2+deb9u1) ... Selecting previously unselected package libdapclient6v5:amd64. Preparing to unpack .../29-libdapclient6v5_3.18.2-2+deb9u1_amd64.deb ... Unpacking libdapclient6v5:amd64 (3.18.2-2+deb9u1) ... Selecting previously unselected package libdapserver7v5:amd64. Preparing to unpack .../30-libdapserver7v5_3.18.2-2+deb9u1_amd64.deb ... Unpacking libdapserver7v5:amd64 (3.18.2-2+deb9u1) ... Selecting previously unselected package libepsilon1:amd64. Preparing to unpack .../31-libepsilon1_0.9.2+dfsg-2_amd64.deb ... Unpacking libepsilon1:amd64 (0.9.2+dfsg-2) ... Selecting previously unselected package libpng16-16:amd64. Preparing to unpack .../32-libpng16-16_1.6.28-1+deb9u1_amd64.deb ... Unpacking libpng16-16:amd64 (1.6.28-1+deb9u1) ... Selecting previously unselected package libfreetype6:amd64. Preparing to unpack .../33-libfreetype6_2.6.3-3.2+deb9u1_amd64.deb ... Unpacking libfreetype6:amd64 (2.6.3-3.2+deb9u1) ... Selecting previously unselected package libfontconfig1:amd64. Preparing to unpack .../34-libfontconfig1_2.11.0-6.7+b1_amd64.deb ... Unpacking libfontconfig1:amd64 (2.11.0-6.7+b1) ... Selecting previously unselected package libfreexl1:amd64. Preparing to unpack .../35-libfreexl1_1.0.2-2+deb9u2_amd64.deb ... Unpacking libfreexl1:amd64 (1.0.2-2+deb9u2) ... Selecting previously unselected package libgeos-3.7.1:amd64. Preparing to unpack .../36-libgeos-3.7.1_3.7.1-1~pgdg90+1_amd64.deb ... Unpacking libgeos-3.7.1:amd64 (3.7.1-1~pgdg90+1) ... Selecting previously unselected package libgeos-c1v5:amd64. Preparing to unpack .../37-libgeos-c1v5_3.7.1-1~pgdg90+1_amd64.deb ... Unpacking libgeos-c1v5:amd64 (3.7.1-1~pgdg90+1) ... Selecting previously unselected package proj-data. Preparing to unpack .../38-proj-data_4.9.3-1_all.deb ... Unpacking proj-data (4.9.3-1) ... Selecting previously unselected package libproj12. Preparing to unpack .../39-libproj12_4.9.3-1_amd64.deb ... Unpacking libproj12 (4.9.3-1) ... Selecting previously unselected package libjbig0:amd64. Preparing to unpack .../40-libjbig0_2.1-3.1+b2_amd64.deb ... Unpacking libjbig0:amd64 (2.1-3.1+b2) ... Selecting previously unselected package libjpeg62-turbo:amd64. Preparing to unpack .../41-libjpeg62-turbo_1%3a1.5.1-2_amd64.deb ... Unpacking libjpeg62-turbo:amd64 (1:1.5.1-2) ... Selecting previously unselected package libtiff5:amd64. Preparing to unpack .../42-libtiff5_4.0.8-2+deb9u4_amd64.deb ... Unpacking libtiff5:amd64 (4.0.8-2+deb9u4) ... Selecting previously unselected package libgeotiff2:amd64. Preparing to unpack .../43-libgeotiff2_1.4.2-2+b1_amd64.deb ... Unpacking libgeotiff2:amd64 (1.4.2-2+b1) ... Selecting previously unselected package libgif7:amd64. Preparing to unpack .../44-libgif7_5.1.4-0.4_amd64.deb ... Unpacking libgif7:amd64 (5.1.4-0.4) ... Selecting previously unselected package libhdf4-0-alt. Preparing to unpack .../45-libhdf4-0-alt_4.2.12-3_amd64.deb ... Unpacking libhdf4-0-alt (4.2.12-3) ... Selecting previously unselected package libsz2:amd64. Preparing to unpack .../46-libsz2_0.3.2-1_amd64.deb ... Unpacking libsz2:amd64 (0.3.2-1) ... Selecting previously unselected package libhdf5-100:amd64. Preparing to unpack .../47-libhdf5-100_1.10.0-patch1+docs-3+deb9u1_amd64.deb ... Unpacking libhdf5-100:amd64 (1.10.0-patch1+docs-3+deb9u1) ... Selecting previously unselected package libjson-c3:amd64. Preparing to unpack .../48-libjson-c3_0.12.1-1.1_amd64.deb ... Unpacking libjson-c3:amd64 (0.12.1-1.1) ... Selecting previously unselected package libminizip1:amd64. Preparing to unpack .../49-libminizip1_1.1-8+b1_amd64.deb ... Unpacking libminizip1:amd64 (1.1-8+b1) ... Selecting previously unselected package liburiparser1:amd64. Preparing to unpack .../50-liburiparser1_0.8.4-1+deb9u1_amd64.deb ... Unpacking liburiparser1:amd64 (0.8.4-1+deb9u1) ... Selecting previously unselected package libkmlbase1:amd64. Preparing to unpack .../51-libkmlbase1_1.3.0-3_amd64.deb ... Unpacking libkmlbase1:amd64 (1.3.0-3) ... Selecting previously unselected package libkmldom1:amd64. Preparing to unpack .../52-libkmldom1_1.3.0-3_amd64.deb ... Unpacking libkmldom1:amd64 (1.3.0-3) ... Selecting previously unselected package libkmlengine1:amd64. Preparing to unpack .../53-libkmlengine1_1.3.0-3_amd64.deb ... Unpacking libkmlengine1:amd64 (1.3.0-3) ... Selecting previously unselected package libkmlconvenience1:amd64. Preparing to unpack .../54-libkmlconvenience1_1.3.0-3_amd64.deb ... Unpacking libkmlconvenience1:amd64 (1.3.0-3) ... Selecting previously unselected package libkmlregionator1:amd64. Preparing to unpack .../55-libkmlregionator1_1.3.0-3_amd64.deb ... Unpacking libkmlregionator1:amd64 (1.3.0-3) ... Selecting previously unselected package libkmlxsd1:amd64. Preparing to unpack .../56-libkmlxsd1_1.3.0-3_amd64.deb ... Unpacking libkmlxsd1:amd64 (1.3.0-3) ... Selecting previously unselected package libnetcdf11. Preparing to unpack .../57-libnetcdf11_1%3a4.4.1.1-2_amd64.deb ... Unpacking libnetcdf11 (1:4.4.1.1-2) ... Selecting previously unselected package libodbc1:amd64. Preparing to unpack .../58-libodbc1_2.3.4-1_amd64.deb ... Unpacking libodbc1:amd64 (2.3.4-1) ... Selecting previously unselected package libogdi3.2. Preparing to unpack .../59-libogdi3.2_3.2.0+ds-2_amd64.deb ... Unpacking libogdi3.2 (3.2.0+ds-2) ... Selecting previously unselected package libopenjp2-7:amd64. Preparing to unpack .../60-libopenjp2-7_2.1.2-1.1+deb9u4_amd64.deb ... Unpacking libopenjp2-7:amd64 (2.1.2-1.1+deb9u4) ... Selecting previously unselected package liblcms2-2:amd64. Preparing to unpack .../61-liblcms2-2_2.8-4+deb9u1_amd64.deb ... Unpacking liblcms2-2:amd64 (2.8-4+deb9u1) ... Selecting previously unselected package libnspr4:amd64. Preparing to unpack .../62-libnspr4_2%3a4.12-6_amd64.deb ... Unpacking libnspr4:amd64 (2:4.12-6) ... Selecting previously unselected package libnss3:amd64. Preparing to unpack .../63-libnss3_2%3a3.26.2-1.1+deb9u1_amd64.deb ... Unpacking libnss3:amd64 (2:3.26.2-1.1+deb9u1) ... Selecting previously unselected package libpoppler64:amd64. Preparing to unpack .../64-libpoppler64_0.48.0-2+deb9u2_amd64.deb ... Unpacking libpoppler64:amd64 (0.48.0-2+deb9u2) ... Selecting previously unselected package libqhull7:amd64. Preparing to unpack .../65-libqhull7_2015.2-2_amd64.deb ... Unpacking libqhull7:amd64 (2015.2-2) ... Selecting previously unselected package libspatialite7:amd64. Preparing to unpack .../66-libspatialite7_4.3.0a-5+b1_amd64.deb ... Unpacking libspatialite7:amd64 (4.3.0a-5+b1) ... Selecting previously unselected package libwebp6:amd64. Preparing to unpack .../67-libwebp6_0.5.2-1_amd64.deb ... Unpacking libwebp6:amd64 (0.5.2-1) ... Selecting previously unselected package libxerces-c3.1:amd64. Preparing to unpack .../68-libxerces-c3.1_3.1.4+debian-2+deb9u1_amd64.deb ... Unpacking libxerces-c3.1:amd64 (3.1.4+debian-2+deb9u1) ... Selecting previously unselected package odbcinst. Preparing to unpack .../69-odbcinst_2.3.4-1_amd64.deb ... Unpacking odbcinst (2.3.4-1) ... Selecting previously unselected package odbcinst1debian2:amd64. Preparing to unpack .../70-odbcinst1debian2_2.3.4-1_amd64.deb ... Unpacking odbcinst1debian2:amd64 (2.3.4-1) ... Selecting previously unselected package libgdal20. Preparing to unpack .../71-libgdal20_2.1.2+dfsg-5_amd64.deb ... Unpacking libgdal20 (2.1.2+dfsg-5) ... Selecting previously unselected package libgmpxx4ldbl:amd64. Preparing to unpack .../72-libgmpxx4ldbl_2%3a6.1.2+dfsg-1_amd64.deb ... Unpacking libgmpxx4ldbl:amd64 (2:6.1.2+dfsg-1) ... Selecting previously unselected package libmpfr4:amd64. Preparing to unpack .../73-libmpfr4_3.1.5-1_amd64.deb ... Unpacking libmpfr4:amd64 (3.1.5-1) ... Selecting previously unselected package libsfcgal1. Preparing to unpack .../74-libsfcgal1_1.3.6-2~pgdg90+1_amd64.deb ... Unpacking libsfcgal1 (1.3.6-2~pgdg90+1) ... Selecting previously unselected package liblwgeom-2.5-0. Preparing to unpack .../75-liblwgeom-2.5-0_2.5.3+dfsg-3.pgdg90+1_amd64.deb ... Unpacking liblwgeom-2.5-0 (2.5.3+dfsg-3.pgdg90+1) ... Selecting previously unselected package libprotobuf-c1:amd64. Preparing to unpack .../76-libprotobuf-c1_1.2.1-2_amd64.deb ... Unpacking libprotobuf-c1:amd64 (1.2.1-2) ... Selecting previously unselected package postgresql-11-postgis-2.5-scripts. Preparing to unpack .../77-postgresql-11-postgis-2.5-scripts_2.5.3+dfsg-3.pgdg90+1_all.deb ... Unpacking postgresql-11-postgis-2.5-scripts (2.5.3+dfsg-3.pgdg90+1) ... Selecting previously unselected package postgresql-11-postgis-2.5. Preparing to unpack .../78-postgresql-11-postgis-2.5_2.5.3+dfsg-3.pgdg90+1_amd64.deb ... Unpacking postgresql-11-postgis-2.5 (2.5.3+dfsg-3.pgdg90+1) ... Setting up libquadmath0:amd64 (6.3.0-18+deb9u1) ... Setting up libminizip1:amd64 (1.1-8+b1) ... Setting up libboost-serialization1.62.0:amd64 (1.62.0+dfsg-4) ... Setting up libaec0:amd64 (0.3.2-1) ... Setting up libidn2-0:amd64 (0.16-1+deb9u1) ... Setting up libopenjp2-7:amd64 (2.1.2-1.1+deb9u4) ... Setting up libqhull7:amd64 (2015.2-2) ... Setting up libboost-date-time1.62.0:amd64 (1.62.0+dfsg-4) ... Setting up libodbc1:amd64 (2.3.4-1) ... Setting up libjpeg62-turbo:amd64 (1:1.5.1-2) ... Setting up libnghttp2-14:amd64 (1.18.1-1+deb9u1) ... Setting up libpng16-16:amd64 (1.6.28-1+deb9u1) ... Setting up liblcms2-2:amd64 (2.8-4+deb9u1) ... Setting up libjbig0:amd64 (2.1-3.1+b2) ... Setting up fonts-dejavu-core (2.37-1) ... Setting up libboost-program-options1.62.0:amd64 (1.62.0+dfsg-4) ... Setting up libblas-common (3.7.0-2) ... Setting up libjson-c3:amd64 (0.12.1-1.1) ... Setting up libpsl5:amd64 (0.17.0-3) ... Setting up postgresql-11-postgis-2.5-scripts (2.5.3+dfsg-3.pgdg90+1) ... update-alternatives: using /usr/share/postgresql/11/extension/postgis-2.5.control to provide /usr/share/postgresql/11/extension/postgis.control (postgresql-11-postgis.control) in auto mode update-alternatives: warning: skip creation of /usr/share/postgresql/11/extension/postgis_raster.control because associated file /usr/share/postgresql/11/extension/postgis_raster-2.5.control (of link group postgresql-11-postgis.control) doesn't exist Setting up libgfortran3:amd64 (6.3.0-18+deb9u1) ... Setting up libtiff5:amd64 (4.0.8-2+deb9u4) ... Setting up libgif7:amd64 (5.1.4-0.4) ... Setting up libprotobuf-c1:amd64 (1.2.1-2) ... Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d.1-1+b1) ... Setting up libepsilon1:amd64 (0.9.2+dfsg-2) ... Processing triggers for sgml-base (1.29) ... Setting up libnspr4:amd64 (2:4.12-6) ... Setting up libdap23:amd64 (3.18.2-2+deb9u1) ... Setting up libfreexl1:amd64 (1.0.2-2+deb9u2) ... Setting up libfreetype6:amd64 (2.6.3-3.2+deb9u1) ... Setting up libgeos-3.7.1:amd64 (3.7.1-1~pgdg90+1) ... Setting up libblas3 (3.7.0-2) ... update-alternatives: using /usr/lib/libblas/libblas.so.3 to provide /usr/lib/libblas.so.3 (libblas.so.3) in auto mode Setting up libssh2-1:amd64 (1.7.0-1+deb9u1) ... Processing triggers for libc-bin (2.24-11+deb9u4) ... Setting up libdapserver7v5:amd64 (3.18.2-2+deb9u1) ... Processing triggers for postgresql-common (210.pgdg90+1) ... debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline Building PostgreSQL dictionaries from installed myspell/hunspell packages... Removing obsolete dictionary files: Setting up libboost-atomic1.62.0:amd64 (1.62.0+dfsg-4) ... Setting up libmpfr4:amd64 (3.1.5-1) ... Setting up libhdf4-0-alt (4.2.12-3) ... Setting up libgmpxx4ldbl:amd64 (2:6.1.2+dfsg-1) ... Setting up libboost-system1.62.0:amd64 (1.62.0+dfsg-4) ... Setting up liburiparser1:amd64 (0.8.4-1+deb9u1) ... Setting up libsz2:amd64 (0.3.2-1) ... Setting up proj-data (4.9.3-1) ... Setting up libwebp6:amd64 (0.5.2-1) ... Setting up libproj12 (4.9.3-1) ... Setting up fontconfig-config (2.11.0-6.7) ... debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline Setting up libhdf5-100:amd64 (1.10.0-patch1+docs-3+deb9u1) ... Setting up libboost-thread1.62.0:amd64 (1.62.0+dfsg-4) ... Setting up libcurl3-gnutls:amd64 (7.52.1-5+deb9u9) ... Setting up liblapack3 (3.7.0-2) ... update-alternatives: using /usr/lib/lapack/liblapack.so.3 to provide /usr/lib/liblapack.so.3 (liblapack.so.3) in auto mode Setting up libnss3:amd64 (2:3.26.2-1.1+deb9u1) ... Setting up libsuperlu5:amd64 (5.2.1+dfsg1-2) ... Setting up libkmlbase1:amd64 (1.3.0-3) ... Setting up libdapclient6v5:amd64 (3.18.2-2+deb9u1) ... Setting up libogdi3.2 (3.2.0+ds-2) ... Setting up libkmlxsd1:amd64 (1.3.0-3) ... Setting up libgeos-c1v5:amd64 (3.7.1-1~pgdg90+1) ... Setting up libboost-filesystem1.62.0:amd64 (1.62.0+dfsg-4) ... Setting up libgeotiff2:amd64 (1.4.2-2+b1) ... Setting up libspatialite7:amd64 (4.3.0a-5+b1) ... Setting up libarpack2 (3.4.0-1+b1) ... Setting up libcgal13:amd64 (4.13-1~pgdg90+1) ... Setting up libkmldom1:amd64 (1.3.0-3) ... Setting up libboost-chrono1.62.0:amd64 (1.62.0+dfsg-4) ... Setting up libfontconfig1:amd64 (2.11.0-6.7+b1) ... Setting up libxerces-c3.1:amd64 (3.1.4+debian-2+deb9u1) ... Setting up libnetcdf11 (1:4.4.1.1-2) ... Setting up libboost-timer1.62.0:amd64 (1.62.0+dfsg-4) ... Setting up libpoppler64:amd64 (0.48.0-2+deb9u2) ... Setting up libarmadillo7 (1:7.600.2+dfsg-2) ... Setting up libkmlengine1:amd64 (1.3.0-3) ... Setting up libboost-test1.62.0:amd64 (1.62.0+dfsg-4) ... Setting up libkmlconvenience1:amd64 (1.3.0-3) ... Setting up libsfcgal1 (1.3.6-2~pgdg90+1) ... Setting up libkmlregionator1:amd64 (1.3.0-3) ... Setting up liblwgeom-2.5-0 (2.5.3+dfsg-3.pgdg90+1) ... Setting up odbcinst1debian2:amd64 (2.3.4-1) ... Setting up odbcinst (2.3.4-1) ... Setting up libgdal20 (2.1.2+dfsg-5) ... Setting up postgresql-11-postgis-2.5 (2.5.3+dfsg-3.pgdg90+1) ... Processing triggers for libc-bin (2.24-11+deb9u4) ... Removing intermediate container eed4af3f2266 ---> f6817120e4a5 Step 6/8 : RUN mkdir -p /docker-entrypoint-initdb.d ---> Running in e8c249729f1b Removing intermediate container e8c249729f1b ---> 911f08d9c69c Step 7/8 : COPY ./initdb-postgis.sh /docker-entrypoint-initdb.d/postgis.sh ---> f069bc026922 Step 8/8 : COPY ./update-postgis.sh /usr/local/bin ---> 73b73d765bb8 Successfully built 73b73d765bb8 Successfully tagged postgis:11-2.5

[root@docker 11-2.5]# docker images |grep postgis postgis 11-2.5 73b73d765bb8 3 minutes ago 467MB

liyin37 commented 4 years ago

it works,now can I add file to the Dockerfile ,then rebuild it?

smellman commented 4 years ago

@liyin37 You don't need rebuild. Create new directory, copy your so files, and create Dockerfile following:

FROM postgis:11-2.5
COPY ./PGSQLEngine.so /usr/lib/postgresql/11/lib
COPY ./st_geometry.so /usr/lib/postgresql/11/lib

Then, you build this Dockerfile.

But we can't follow your so files. I recommend build new so files in your Dockerfile from source code.

liyin37 commented 4 years ago

thanks very much,now it works