Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions 11-2.6/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM mdillon/postgis:11

LABEL author="beyoung"
LABEL email="tuwenyoung@gmail.com"

ENV PGROUTING_MAJOR 2.6
ENV PGROUTING_VERSION 2.6.2

RUN apt update && \
apt install -y --no-install-recommends \
postgresql-$PG_MAJOR-pgrouting && \
rm -rf /var/lib/apt/lists/*

RUN mkdir -p /docker-entrypoint-initdb.d
COPY ./initdb-pgrouting.sh /docker-entrypoint-initdb.d/routing.sh
11 changes: 11 additions & 0 deletions 11-2.6/initdb-pgrouting.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
set -e

# Perform all actions as user 'postgres'
export PGUSER=postgres

# Add pgRouting Functions to the database
psql --dbname="$POSTGRES_DB" <<EOSQL
CREATE EXTENSION postgis;
CREATE EXTENSION pgrouting;
EOSQL
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ The following Docker Image tags are supported.
| [`9.4-2.1-2.0` (Dockerfile)](https://github.com/Starefossen/docker-pgrouting/blob/master/9.4-2.1-2.0/Dockerfile) | 9.4.x | 2.1.x | 2.0.x |
| [`9.6-2.3-2.3` (Dockerfile)](https://github.com/Starefossen/docker-pgrouting/blob/master/9.6-2.3-2.3/Dockerfile) | 9.6.x | 2.3.x | 2.3.x |
| [`10.1-2.4-2.5` (Dockerfile)](https://github.com/Starefossen/docker-pgrouting/blob/master/10.1-2.4-2.5/Dockerfile) | 10.1.x | 2.4.x | 2.5.x |
| [`11-2.6` (Dockerfile)](https://github.com/Starefossen/docker-pgrouting/blob/master/11-2.6/Dockerfile) | 11.3.x | 2.5.x | 2.6.x |

## What is pgRouting

Expand Down
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ pgrouting-9.6-2.3-2.3:

pgrouting-10.1-2.4-2.5:
build: 10.1-2.4-2.5/.

pgrouting-11-2.6:
build: 11-2.6/.