├── 10.1-2.4-2.5 ├── Dockerfile └── initdb-pgrouting.sh ├── 9.4-2.1-2.0 ├── Dockerfile └── initdb-pgrouting.sh ├── 9.6-2.3-2.3 ├── Dockerfile └── initdb-pgrouting.sh ├── LICENSE ├── README.md ├── demo.gif └── docker-compose.yml /10.1-2.4-2.5/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM mdillon/postgis:10 2 | MAINTAINER Hans Kristian Flaatten 3 | 4 | ENV PGROUTING_MAJOR 2.5 5 | ENV PGROUTING_VERSION 2.5.2 6 | 7 | RUN apt-get update && \ 8 | apt-get install -y --no-install-recommends \ 9 | wget \ 10 | postgresql-$PG_MAJOR-pgrouting && \ 11 | rm -rf /var/lib/apt/lists/* 12 | 13 | RUN mkdir -p /docker-entrypoint-initdb.d 14 | COPY ./initdb-pgrouting.sh /docker-entrypoint-initdb.d/routing.sh 15 | -------------------------------------------------------------------------------- /10.1-2.4-2.5/initdb-pgrouting.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Perform all actions as user 'postgres' 5 | export PGUSER=postgres 6 | 7 | # Add pgRouting Functions to the database 8 | psql --dbname="$POSTGRES_DB" < 3 | 4 | ENV PGROUTING_MAJOR 2.0 5 | ENV PGROUTING_VERSION 2.0.0-3 6 | 7 | RUN apt-get update && \ 8 | apt-get install -y --no-install-recommends \ 9 | postgresql-$PG_MAJOR-pgrouting=$PGROUTING_VERSION && \ 10 | rm -rf /var/lib/apt/lists/* 11 | 12 | RUN mkdir -p /docker-entrypoint-initdb.d 13 | COPY ./initdb-pgrouting.sh /docker-entrypoint-initdb.d/routing.sh 14 | -------------------------------------------------------------------------------- /9.4-2.1-2.0/initdb-pgrouting.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Perform all actions as user 'postgres' 5 | export PGUSER=postgres 6 | 7 | # Add pgRouting Functions to the database 8 | psql --dbname="$POSTGRES_DB" < 3 | 4 | ENV PGROUTING_MAJOR 2.3 5 | ENV PGROUTING_VERSION 2.3.0-1 6 | 7 | RUN apt-get update && \ 8 | apt-get install -y --no-install-recommends \ 9 | wget \ 10 | postgresql-$PG_MAJOR-pgrouting && \ 11 | rm -rf /var/lib/apt/lists/* 12 | 13 | RUN mkdir -p /docker-entrypoint-initdb.d 14 | COPY ./initdb-pgrouting.sh /docker-entrypoint-initdb.d/routing.sh 15 | -------------------------------------------------------------------------------- /9.6-2.3-2.3/initdb-pgrouting.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Perform all actions as user 'postgres' 5 | export PGUSER=postgres 6 | 7 | # Add pgRouting Functions to the database 8 | psql --dbname="$POSTGRES_DB" <` 62 | 63 | This is the locked down version of the image. If comes in two variants, major 64 | versions major+minor for Postgres, PostGIS, and pgRouting as the version tag. 65 | 66 | ## License 67 | 68 | This Docker image is licensed under the [MIT License](https://github.com/Starefossen/docker-pgrouting/blob/master/LICENSE). 69 | 70 | Software contained in this image is licensed under the following: 71 | 72 | * PostgreSQL: [PostgreSQL License](http://www.postgresql.org/about/licence/) 73 | * PostGIS: [GNU GPL v2](https://github.com/postgis/postgis/blob/svn-trunk/COPYING) 74 | * pgRouting: [GNU GPL v2](https://github.com/pgRouting/pgrouting/blob/master/COPYING) 75 | 76 | ## Supported Docker versions 77 | 78 | This image is officially supported on Docker version 1.8.1. 79 | 80 | Support for older versions (down to 1.0) is provided on a best-effort basis. 81 | 82 | ## User Feedback 83 | 84 | ### Documentation 85 | 86 | * [Postgres](http://www.postgresql.org) 87 | * [PostGIS](http://postgis.net) 88 | * [pgRouting](http://pgrouting.org) 89 | 90 | ### Issues 91 | 92 | If you have any problems with or questions about this image, please contact us 93 | through a [GitHub issue](https://github.com/Starefossen/docker-pgrouting/issues). 94 | 95 | ### Contributing 96 | 97 | You are invited to contribute new features, fixes, or updates, large or small; 98 | we are always thrilled to receive pull requests, and do our best to process them 99 | as fast as we can. 100 | 101 | Before you start to code, we recommend discussing your plans through a [GitHub 102 | issue](https://github.com/Starefossen/docker-pgrouting/issues), especially 103 | for more ambitious contributions. This gives other contributors a chance to 104 | point you in the right direction, give you feedback on your design, and help 105 | you find out if someone else is working on the same thing. 106 | -------------------------------------------------------------------------------- /demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Starefossen/docker-pgrouting/df5cbd7f82893fdeb42d071af20d756cbd538900/demo.gif -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | pgrouting-9.4-2.1-2.0: 2 | build: 9.4-2.1-2.0/. 3 | 4 | pgrouting-9.6-2.3-2.3: 5 | build: 9.6-2.3-2.3/. 6 | 7 | pgrouting-10.1-2.4-2.5: 8 | build: 10.1-2.4-2.5/. 9 | --------------------------------------------------------------------------------