-
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.
Update six extensions for Postgres 17
Update the build scripting steps and default Postgres build for these extensions: * pg_currency * pg_dbms_job * pg_dirtyread * pg_extra_time * pg_financial * pg_hashids Upgrade these extensions: * pg_currency v0.0.4 * pg_dirtyread v2.7.0 * pg_extra_time v1.1.2 In addition, record the version of pg_hashids as v1.2.1, to reflect what we have actually been providing.
- Loading branch information
Showing
12 changed files
with
55 additions
and
102 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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
# Set PostgreSQL version | ||
ARG PG_VERSION=15 | ||
ARG PG_VERSION | ||
FROM quay.io/coredb/c-builder:pg${PG_VERSION} | ||
|
||
# Clone repository | ||
RUN git clone https://github.com/adjust/pg-currency.git | ||
# ARG EXTENSION_NAME | ||
ARG EXTENSION_VERSION | ||
|
||
# Build extension | ||
RUN cd pg-currency && \ | ||
make | ||
# Extension build dependencies | ||
RUN curl -O https://api.pgxn.org/dist/currency/${EXTENSION_VERSION}/currency-${EXTENSION_VERSION}.zip \ | ||
&& unzip currency-${EXTENSION_VERSION}.zip \ | ||
&& cd currency-${EXTENSION_VERSION} && make | ||
WORKDIR /app/currency-${EXTENSION_VERSION} |
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 |
---|---|---|
@@ -1,12 +1,8 @@ | ||
ARG PG_VERSION=15 | ||
ARG PG_VERSION | ||
FROM quay.io/coredb/c-builder:pg${PG_VERSION} | ||
|
||
# Clone repository | ||
RUN git clone https://github.com/MigOpsRepos/pg_dbms_job.git | ||
|
||
ARG RELEASE=v1.5 | ||
|
||
RUN cd pg_dbms_job && \ | ||
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$(perl -E 'print shift =~ s/[.]0$//gr' "${EXTENSION_VERSION}")" https://github.com/MigOpsRepos/${EXTENSION_NAME}.git \ | ||
&& make -C ${EXTENSION_NAME} |
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 |
---|---|---|
@@ -1,12 +1,8 @@ | ||
ARG PG_VERSION=15 | ||
ARG PG_VERSION | ||
FROM quay.io/coredb/c-builder:pg${PG_VERSION} | ||
|
||
# Clone repository | ||
RUN git clone https://github.com/df7cb/pg_dirtyread.git | ||
|
||
ARG RELEASE=2.6 | ||
|
||
RUN cd pg_dirtyread && \ | ||
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 "$(perl -E 'print shift =~ s/[.]0$//gr' "${EXTENSION_VERSION}")" https://github.com/df7cb/${EXTENSION_NAME}.git \ | ||
&& make -C ${EXTENSION_NAME} |
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 |
---|---|---|
@@ -1,16 +1,11 @@ | ||
# Set PostgreSQL version | ||
ARG PG_VERSION=15 | ||
ARG PG_VERSION= | ||
FROM quay.io/coredb/c-builder:pg${PG_VERSION} | ||
USER root | ||
|
||
# Clone repository | ||
RUN git clone https://github.com/bigsmoke/pg_extra_time.git | ||
|
||
ARG RELEASE=v1.1.0 | ||
|
||
# Build extension | ||
RUN cd pg_extra_time && \ | ||
git fetch origin ${RELEASE} && \ | ||
git checkout ${RELEASE} && \ | ||
make | ||
|
||
# Download and build the extension. | ||
ARG EXTENSION_NAME | ||
ARG EXTENSION_VERSION | ||
RUN curl -O https://api.pgxn.org/dist/${EXTENSION_NAME}/${EXTENSION_VERSION}/${EXTENSION_NAME}-${EXTENSION_VERSION}.zip \ | ||
&& unzip ${EXTENSION_NAME}-${EXTENSION_VERSION}.zip \ | ||
&& cd ${EXTENSION_NAME}-${EXTENSION_VERSION} && make | ||
WORKDIR /app/${EXTENSION_NAME}-${EXTENSION_VERSION} |
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 |
---|---|---|
@@ -1,18 +1,13 @@ | ||
[extension] | ||
name = "pg_extra_time" | ||
version = "1.1.0" | ||
version = "1.1.2" | ||
repository = "https://github.com/bigsmoke/pg_extra_time" | ||
license = "PostgreSQL" | ||
description = "Additional date time functions." | ||
categories = ["data_transformations"] | ||
|
||
[build] | ||
postgres_version = "15" | ||
postgres_version = "17" | ||
platform = "linux/amd64" | ||
dockerfile = "Dockerfile" | ||
install_command = """ | ||
cd pg_extra_time && 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" |
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 |
---|---|---|
@@ -1,15 +1,9 @@ | ||
# Set PostgreSQL version | ||
ARG PG_VERSION=15 | ||
ARG PG_VERSION | ||
FROM quay.io/coredb/c-builder:pg${PG_VERSION} | ||
|
||
# Clone repository | ||
RUN git clone https://github.com/intgr/pg_financial.git | ||
|
||
# Set project version | ||
ARG RELEASE=v1.0.1 | ||
|
||
# Build extension | ||
RUN cd pg_financial && \ | ||
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/intgr/${EXTENSION_NAME}.git \ | ||
&& make -C ${EXTENSION_NAME} |
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 |
---|---|---|
@@ -1,11 +1,7 @@ | ||
ARG PG_VERSION=15 | ||
ARG PG_VERSION | ||
FROM quay.io/coredb/c-builder:pg${PG_VERSION} | ||
ARG RELEASE=v1.2.1 | ||
|
||
# Clone repository | ||
RUN git clone https://github.com/iCyberon/pg_hashids.git | ||
|
||
RUN cd pg_hashids && \ | ||
git fetch origin ${RELEASE} && \ | ||
git checkout ${RELEASE} && \ | ||
make | ||
ARG EXTENSION_NAME | ||
ARG EXTENSION_VERSION | ||
RUN git clone --depth 1 --branch "v${EXTENSION_VERSION}" https://github.com/iCyberon/${EXTENSION_NAME}.git \ | ||
&& make -C ${EXTENSION_NAME} |
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