Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to PostgreSQL 11 #270

Closed
wants to merge 11 commits into from
2 changes: 1 addition & 1 deletion docker/postgis/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# the postgis base image has outdated ogr2ogr (gdal-bin package)
# does not support PG12 yet, which means postgis-preloaded cannot be built easily.
# Once it is updated, or there is a different way to build it, we can upgrade to 12.
ARG BASE_POSTGIS_VER=9.6-3.0
ARG BASE_POSTGIS_VER=11-3.0
FROM postgis/postgis:$BASE_POSTGIS_VER

LABEL maintainer="Yuri Astrakhan <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion docker/postgis/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# PostGIS + OSM-specific extensions Docker image
[![](https://images.microbadger.com/badges/image/openmaptiles/postgis.svg)](https://microbadger.com/images/openmaptiles/postgis "Get your own image badge on microbadger.com") [![Docker Automated buil](https://img.shields.io/docker/automated/openmaptiles/postgis.svg)]()

This images is based on PostgreSQL 9.6 and PostGIS 3.0 [Docker image](https://hub.docker.com/r/postgis/postgis/) and includes [osml10n extension](https://github.com/giggls/mapnik-german-l10n.git) - OSM-specific label manipulation support.
This images is based on PostgreSQL 11 and PostGIS 3.0 [Docker image](https://hub.docker.com/r/postgis/postgis/) and includes [osml10n extension](https://github.com/giggls/mapnik-german-l10n.git) - OSM-specific label manipulation support.

## Usage

Expand Down
7 changes: 7 additions & 0 deletions docker/postgis/initdb-postgis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ set -o errexit
set -o pipefail
set -o nounset

echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
echo " Pre-configuring PostgreSQL"
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
PGUSER="$POSTGRES_USER" psql --dbname="postgres" <<-'EOSQL'
ALTER SYSTEM SET jit = 'off';
EOSQL

echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
echo " Loading OMT postgis extensions"
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
Expand Down