Skip to content

Commit 533dce2

Browse files
authored
Merge pull request #61 from cayetanobv/16_34_36_version
pg16 postgis 3.4 pgrouting 3.6
2 parents 32a03f7 + 3f31ee1 commit 533dce2

File tree

6 files changed

+115
-0
lines changed

6 files changed

+115
-0
lines changed

16-3.4-3.6/Dockerfile

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
FROM postgis/postgis:16-3.4
2+
3+
LABEL maintainer="pgRouting Project - https://pgrouting.org"
4+
5+
ENV PGROUTING_VERSION 3.6.1
6+
ENV PGROUTING_SHA256 30231dfe01211f709fca9ac0140454ba6bd812f2b7f45fb30222169cd4e8b061
7+
8+
RUN set -ex \
9+
&& apt update \
10+
&& apt install -y \
11+
libboost-atomic1.74.0 \
12+
libboost-chrono1.74.0 \
13+
libboost-graph1.74.0 \
14+
libboost-date-time1.74.0 \
15+
libboost-program-options1.74.0 \
16+
libboost-system1.74.0 \
17+
libboost-thread1.74.0 \
18+
&& apt install -y \
19+
build-essential \
20+
cmake \
21+
wget \
22+
libboost-graph-dev \
23+
libpq-dev \
24+
postgresql-server-dev-${PG_MAJOR} \
25+
&& wget -O pgrouting.tar.gz "https://github.com/pgRouting/pgrouting/archive/v${PGROUTING_VERSION}.tar.gz" \
26+
&& echo "$PGROUTING_SHA256 *pgrouting.tar.gz" | sha256sum -c - \
27+
&& mkdir -p /usr/src/pgrouting \
28+
&& tar \
29+
--extract \
30+
--file pgrouting.tar.gz \
31+
--directory /usr/src/pgrouting \
32+
--strip-components 1 \
33+
&& rm pgrouting.tar.gz \
34+
&& cd /usr/src/pgrouting \
35+
&& mkdir build \
36+
&& cd build \
37+
&& cmake .. \
38+
&& make \
39+
&& make install \
40+
&& cd / \
41+
&& rm -rf /usr/src/pgrouting \
42+
&& apt-mark manual postgresql-16 \
43+
&& apt purge -y --autoremove \
44+
build-essential \
45+
cmake \
46+
wget \
47+
libpq-dev \
48+
libboost-graph-dev \
49+
postgresql-server-dev-${PG_MAJOR} \
50+
&& rm -rf /var/lib/apt/lists/*
51+
RUN rm /docker-entrypoint-initdb.d/10_postgis.sh

16-3.4-3.6/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# pgRouting 3.6.1 (pg16)
2+
3+
pgRouting Docker image (version 3.6.1) built over [Postgres 16/PostGIS 3.4](https://hub.docker.com/r/postgis/postgis) and dependencies.

16-3.4-3.6/docker-compose.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: "3"
2+
services:
3+
pgrouting:
4+
image: pgrouting/pgrouting:16-3.4-3.6.1
5+
ports:
6+
- "5432:5432"
7+
volumes:
8+
- db-data:/var/lib/postgresql/data
9+
environment:
10+
- POSTGRES_PASSWORD=postgres
11+
volumes:
12+
db-data:

16-3.4-3.6/extra/Dockerfile

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
FROM pgrouting/pgrouting:16-3.4-3.6.1
2+
3+
ENV OSM2PGROUTING_VERSION 2.3.8
4+
5+
RUN apt update \
6+
&& apt install -y \
7+
libpqxx-6.4 \
8+
&& apt install -y \
9+
build-essential \
10+
cmake \
11+
wget \
12+
libboost-program-options-dev \
13+
libexpat1 \
14+
libexpat-dev \
15+
libosmium2-dev \
16+
libpqxx-dev \
17+
zlib1g-dev \
18+
&& cd /usr/local/src \
19+
&& wget https://github.com/pgRouting/osm2pgrouting/archive/v${OSM2PGROUTING_VERSION}.tar.gz \
20+
&& tar xvf v${OSM2PGROUTING_VERSION}.tar.gz \
21+
&& cd osm2pgrouting-${OSM2PGROUTING_VERSION} \
22+
&& mkdir build \
23+
&& cd build \
24+
&& cmake .. \
25+
&& make \
26+
&& make install \
27+
&& cd ../tools/osmium/ \
28+
&& mkdir build \
29+
&& cd build \
30+
&& cmake .. \
31+
&& make \
32+
&& make install \
33+
&& cd /usr/local/src \
34+
&& rm -rf ./* \
35+
&& apt purge -y --autoremove \
36+
build-essential \
37+
cmake \
38+
wget \
39+
libboost-program-options-dev \
40+
libexpat-dev \
41+
libosmium2-dev \
42+
libpqxx-dev \
43+
zlib1g-dev \
44+
&& apt autoremove -y \
45+
&& rm -rf /var/lib/apt/lists/*

16-3.4-3.6/version.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
16-3.4-3.6.1

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ pgRouting Docker images.
2424
There are several versions available:
2525

2626
- With pgRouting v3:
27+
- [3.6 with Postgres 16 + PostGIS 3.4](16-3.4-3.6/). Docker image: `pgrouting/pgrouting:16-3.4-3.6`
28+
- [3.5 with Postgres 16 + PostGIS 3.4](16-3.4-3.5/). Docker image: `pgrouting/pgrouting:16-3.4-3.5`
2729
- [3.4 with Postgres 15 + PostGIS 3.3](15-3.3-3.4/). Docker image: `pgrouting/pgrouting:15-3.3-3.4`
2830
- [3.4 with Postgres 14 + PostGIS 3.3](14-3.3-3.4/). Docker image: `pgrouting/pgrouting:14-3.3-3.4`
2931
- [3.4 with Postgres 13 + PostGIS 3.3](13-3.3-3.4/). Docker image: `pgrouting/pgrouting:13-3.3-3.4`
@@ -133,6 +135,7 @@ To make new version for example `x.x`, run following:
133135
```
134136
mkdir 15-3.3-x.x
135137
touch 15-3.3-x.x/Dockerfile
138+
touch 15-3.3-x.x/version.txt
136139
make update
137140
```
138141

0 commit comments

Comments
 (0)