Skip to content

Commit

Permalink
Add mobilitydb (#659)
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Stanton <[email protected]>
Co-authored-by: Ian Stanton <[email protected]>
  • Loading branch information
EvanHStanton and ianstanton authored Feb 20, 2024
1 parent 214a6ea commit 80c3c71
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/extensions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- dind
- xlarge-16x16
container:
image: quay.io/tembo/trunk-test-tembo:0.0.32
image: quay.io/tembo/trunk-test-tembo:0.0.33
options: --user root
needs:
- find_directories
Expand All @@ -81,7 +81,7 @@ jobs:
- dind
- xlarge-16x16
container:
image: quay.io/tembo/trunk-test-tembo:0.0.32
image: quay.io/tembo/trunk-test-tembo:0.0.33
options: --user root
needs:
- find_directories
Expand Down
36 changes: 36 additions & 0 deletions contrib/mobilitydb/Dockerfile
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
21 changes: 21 additions & 0 deletions contrib/mobilitydb/Trunk.toml
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
"""
1 change: 1 addition & 0 deletions images/trunk-test-tembo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ RUN apt-get update && apt-get install -y \
openjdk-11-jdk \
libaio1 \
libbson-dev \
libgsl-dev \
&& rm -rf /var/lib/apt/lists/*
RUN ln -s /usr/lib/jvm/java-11-openjdk-amd64/lib/server/libjvm.so /usr/lib/x86_64-linux-gnu/libjvm.so
RUN wget https://download.oracle.com/otn_software/linux/instantclient/1920000/instantclient-basiclite-linux.x64-19.20.0.0.0dbru.zip && \
Expand Down

0 comments on commit 80c3c71

Please sign in to comment.