Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update postgis, mysql_fdw, meta_triggers #854

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions contrib/meta_triggers/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@
ARG PG_VERSION=15
FROM quay.io/coredb/c-builder:pg${PG_VERSION}

# Clone repository
RUN git clone https://github.com/aquameta/meta_triggers.git

# Set project version
ARG RELEASE=v0.3.0

# Build extension
RUN cd meta_triggers && \
git fetch origin ${RELEASE} && \
git checkout ${RELEASE} && \
make
# Clone and build the extension.
ARG EXTENSION_NAME
ARG EXTENSION_VERSION
RUN git clone --depth 1 --branch "v${EXTENSION_VERSION}" https://github.com/aquameta/${EXTENSION_NAME}.git \
&& cd ${EXTENSION_NAME} \
# https://github.com/aquameta/meta/pull/39
&& printf "requires = 'meta'\n" >> ${EXTENSION_NAME}.control \
&& make
9 changes: 2 additions & 7 deletions contrib/meta_triggers/Trunk.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[extension]
name = "meta_triggers"
version = "0.3.0"
version = "0.4.0"
repository = "https://github.com/aquameta/meta_triggers"
license = "BSD-2-Clause"
description = "PostgreSQL Extension: Insert, update and delete triggers that make the meta extension writable."
Expand All @@ -11,9 +11,4 @@ categories = ["tooling_admin"]
postgres_version = "15"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = """
cd meta_triggers && 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
"""
install_command = "make -C meta_triggers install"
22 changes: 7 additions & 15 deletions contrib/mysql_fdw/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,10 @@ RUN apt-get update && apt-get install -y \
ccache \
default-libmysqlclient-dev

# Clone repository
RUN git clone https://github.com/postgres/postgres.git


ARG PG_RELEASE=REL_15_3

# Build extension
RUN cd postgres && \
git fetch origin ${PG_RELEASE} && \
git checkout ${PG_RELEASE} && \
./configure && \
cd contrib && \
git clone https://github.com/EnterpriseDB/mysql_fdw.git && \
cd mysql_fdw && \
make USE_PGXS=1
# Clone and build the extension.
ARG EXTENSION_NAME
# ARG EXTENSION_VERSION
ARG RELEASE=REL-2_9_2
RUN git clone --depth 1 --branch "${RELEASE}" https://github.com/EnterpriseDB/${EXTENSION_NAME}.git \
&& cd ${EXTENSION_NAME} \
&& make USE_PGXS=1
9 changes: 2 additions & 7 deletions contrib/mysql_fdw/Trunk.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@ categories = ["connectors"]
apt = ["libc6"]

[build]
postgres_version = "15"
postgres_version = "17"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = """
cd postgres/contrib/mysql_fdw && make USE_PGXS=1 install
set -x
mv /usr/local/pgsql/share/extension/* /usr/share/postgresql/15/extension
mv /usr/local/pgsql/lib/* /usr/lib/postgresql/15/lib
"""
install_command = "make -C mysql_fdw install USE_PGXS=1"
26 changes: 15 additions & 11 deletions contrib/postgis/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
ARG PG_VERSION=15
ARG PG_VERSION
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

RUN apt-get update \
&& apt-get install -y \
libgeos-dev \
libproj-dev \
libprotobuf-c-dev \
protobuf-c-compiler \
libgdal-dev \
&& 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 \
# Extension build dependencies
ARG EXTENSION_NAME
ARG EXTENSION_VERSION
RUN curl -O https://download.osgeo.org/${EXTENSION_NAME}/source/${EXTENSION_NAME}-${EXTENSION_VERSION}.tar.gz \
&& tar xvf ${EXTENSION_NAME}-${EXTENSION_VERSION}.tar.gz \
&& cd ${EXTENSION_NAME}-${EXTENSION_VERSION} \
&& ./configure \
&& make
WORKDIR /app/${EXTENSION_NAME}-${EXTENSION_VERSION}
11 changes: 3 additions & 8 deletions contrib/postgis/Trunk.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[extension]
name = "postgis"
version = "3.4.0"
version = "3.5.0"
repository = "https://github.com/postgis/postgis"
license = "GPL-2.0"
description = "PostGIS geometry and geography spatial types and functions."
Expand All @@ -12,12 +12,7 @@ categories = ["featured", "data_transformations"]
apt = ["libjson-c5", "libgcc-s1", "libpcre2-8-0", "libstdc++6", "libproj22", "libxml2", "libgdal30", "libgeos-c1v5", "libc6", "libprotobuf-c1"]

[build]
postgres_version = "15"
postgres_version = "17"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = """
cd postgis-3.4.0/ && 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
"""
install_command = "make install"