Skip to content

Latest commit

 

History

History

PostgreSQL-9.4.5-PostGIS-2.2.0-GDAL-2.0.1-Patched

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

PostgreSQL 9.4.5, PostGIS 2.2.0, GDAL 2.0.1, Patched

WARNING: This image is deprecated. Use tag Awkward Aardvark instead.

This is the README.md for Docker tag postgresql-9.4.5-postgis-2.2.0-gdal-2.0.1-patched.

Versions

This Dockerfile compiles the following software:

  • PostgreSQL 9.4.5;

  • GEOS 3.5.0;

  • Proj 4.9.2: patched with the spanish national grid for conversion between ED50 to ETRS89;

  • GDAL 2.0.1: also patched;

  • Postgis 2.2.0: patched as well.

Usage Pattern

Build the image directly from Git (this can take a while, don't forget to checkout the right branch):

docker build -t="geographica/postgis:postgresql-9.4.5-postgis-2.2.0-gdal-2.0.1-patched" .

Build with another locale

docker build --build-arg locale=es_ES -t="geographica/postgis:postgresql-9.4.5-postgis-2.2.0-gdal-2.0.1-patched-es_ES" .

or pull it from Docker Hub:

docker pull geographica/postgis:postgresql-9.4.5-postgis-2.2.0-gdal-2.0.1-patched

If you want an specific locale version:

The image uses several environment variables. Refer to the Dockerfile for a complete list. The most important one is POSTGRES_PASSWD, the password for the user POSTGRES.

The image exposes port 5432 and a volume designated by enviroment variable POSTGRES_DATA_FOLDER.

Dev environment

For dev environment you can run:

docker run -p 5432:5432 --name postgis-2.2 geographica/postgis:postgresql-9.4.5-postgis-2.2.0-gdal-2.0.1-patched 

Production enviroment

docker run -d -P --name whatever -e "POSTGRES_PASSWD="md5"$(printf '%s' "change_this_password" "postgres" | md5sum | cut -d ' ' -f 1)" geographica/postgis:postgresql-9.4.5-postgis-2.2.0-gdal-2.0.1-patched 

This generates a MD5 hashed password for the user postgres. Keep in mind that to provide a MD5-hashed password to PostgreSQL it has to be the hash of passwordusername and be prefixed by md5.

The image creates containers that initializes automatically a datastore, setting the password for user postgres.

## Data containers If you're going to use it at production or dev, we recommend you to create a data container to store the persistent data.

docker create --name postgis-2.2_data -v /data ubuntu:trusty /bin/false

After you can import the data volumes using --volumes-from

docker run -p 5432:5432 --name postgis-2.2 -d --volumes-from postgis-2.2_data geographica/postgis:postgresql-9.4.5-postgis-2.2.0-gdal-2.0.1-patched-es_ES
``