-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Evan Stanton
authored and
Evan Stanton
committed
Jul 13, 2023
1 parent
1a462b5
commit 31be1e9
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
ARG PG_VERSION=15 | ||
FROM quay.io/coredb/c-builder:pg${PG_VERSION} | ||
USER root | ||
|
||
# Install the dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
cmake \ | ||
libboost-all-dev \ | ||
perl \ | ||
postgresql-server-dev-13 \ | ||
python3-sphinx | ||
|
||
# Clone pgRouting repository | ||
RUN git clone https://github.com/pgRouting/pgrouting.git | ||
|
||
RUN cd pgrouting \ | ||
&& mkdir build \ | ||
&& cd build \ | ||
&& cmake .. \ | ||
&& make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[extension] | ||
name = "pgrouting" | ||
version = "3.5.0" | ||
repository = "https://github.com/pgRouting/pgrouting" | ||
license = "GPL-2.0" | ||
description = "pgRouting extends the PostGIS / PostgreSQL geospatial database to provide geospatial routing functionality." | ||
homepage = "https://pgrouting.org/" | ||
documentation = "https://docs.pgrouting.org/latest/en/index.html" | ||
categories = ["data_transformations"] | ||
|
||
[build] | ||
postgres_version = "15" | ||
platform = "linux/amd64" | ||
dockerfile = "Dockerfile" | ||
install_command = """ | ||
cd pgrouting/build && make install | ||
set -x | ||
mv /usr/local/pgsql/share/extension/* /usr/share/postgresql/15/extension | ||
mv /usr/local/pgsql/lib/* /usr/lib/postgresql/15/lib | ||
""" | ||
|