diff --git a/.github/workflows/extensions.yaml b/.github/workflows/extensions.yaml index d34aca6c..6eb7521b 100644 --- a/.github/workflows/extensions.yaml +++ b/.github/workflows/extensions.yaml @@ -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 @@ -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 diff --git a/contrib/mobilitydb/Dockerfile b/contrib/mobilitydb/Dockerfile new file mode 100644 index 00000000..6a8caa40 --- /dev/null +++ b/contrib/mobilitydb/Dockerfile @@ -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 diff --git a/contrib/mobilitydb/Trunk.toml b/contrib/mobilitydb/Trunk.toml new file mode 100644 index 00000000..8ca25a89 --- /dev/null +++ b/contrib/mobilitydb/Trunk.toml @@ -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 +""" diff --git a/images/trunk-test-tembo/Dockerfile b/images/trunk-test-tembo/Dockerfile index 265bbf07..c20fa373 100644 --- a/images/trunk-test-tembo/Dockerfile +++ b/images/trunk-test-tembo/Dockerfile @@ -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 && \