-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ian Stanton <[email protected]> Co-authored-by: Ian Stanton <[email protected]>
- Loading branch information
1 parent
214a6ea
commit 80c3c71
Showing
4 changed files
with
60 additions
and
2 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
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,36 @@ | ||
ARG PG_VERSION=15 | ||
FROM quay.io/coredb/c-builder:pg${PG_VERSION} | ||
USER root | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
libgeos-dev \ | ||
libproj-dev \ | ||
libprotobuf-c-dev \ | ||
protobuf-c-compiler \ | ||
libgdal-dev \ | ||
libgsl-dev \ | ||
libjson-c-dev | ||
|
||
# Download and build PostGIS | ||
RUN wget https://download.osgeo.org/postgis/source/postgis-3.4.0.tar.gz && \ | ||
tar xvf postgis-3.4.0.tar.gz && \ | ||
cd postgis-3.4.0 && \ | ||
./configure && \ | ||
make && \ | ||
make install | ||
|
||
# Clone repository | ||
RUN git clone https://github.com/MobilityDB/MobilityDB | ||
|
||
# Set project version | ||
ARG RELEASE=v1.1.0rc1 | ||
|
||
# Build extension | ||
RUN cd MobilityDB && \ | ||
git fetch origin ${RELEASE} && \ | ||
git checkout ${RELEASE} && \ | ||
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 = "mobilitydb" | ||
version = "1.1.0" | ||
repository = "https://github.com/MobilityDB/MobilityDB" | ||
license = "PostgreSQL" | ||
description = "Geospatial trajectory data management." | ||
homepage = "https://mobilitydb.com/" | ||
documentation = "https://mobilitydb.com/documentation.html" | ||
categories = ["data_transformations"] | ||
loadable_libraries = [{ library_name = "postgis-3", requires_restart = true }] | ||
|
||
[dependencies] | ||
apt = ["libc6", "libgsl-dev"] | ||
|
||
[build] | ||
postgres_version = "15" | ||
platform = "linux/amd64" | ||
dockerfile = "Dockerfile" | ||
install_command = """ | ||
cd MobilityDB/build && make install | ||
""" |
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