-
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 pg_html5_email_address & add pg_jsonschema
Also backport install script simplification to pg_analytics, pg_cron, and pg_graphql.
- Loading branch information
Showing
9 changed files
with
66 additions
and
54 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,4 +1,4 @@ | ||
ARG PG_VERSION=17 | ||
ARG PG_VERSION | ||
FROM quay.io/coredb/pgrx-builder:pg${PG_VERSION}-pgrx0.12.7 | ||
|
||
USER root | ||
|
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,8 @@ | ||
ARG PG_VERSION=17 | ||
ARG PG_VERSION | ||
FROM quay.io/coredb/c-builder:pg${PG_VERSION} | ||
ARG EXTENSION_VERSION=1.6.4 | ||
|
||
# Clone repository | ||
RUN git clone https://github.com/citusdata/pg_cron.git | ||
|
||
RUN cd pg_cron && \ | ||
git fetch origin v${EXTENSION_VERSION} && \ | ||
git checkout v${EXTENSION_VERSION} && \ | ||
make | ||
# Clone and build the extension. | ||
ARG EXTENSION_NAME | ||
ARG EXTENSION_VERSION | ||
RUN git clone --depth 1 --branch "v${EXTENSION_VERSION}" https://github.com/citusdata/${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
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,12 @@ | ||
# 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_html5_email_address.git | ||
|
||
ARG RELEASE=v1.2.2 | ||
|
||
# Build extension | ||
RUN cd pg_html5_email_address && \ | ||
git fetch origin ${RELEASE} && \ | ||
git checkout ${RELEASE} && \ | ||
make | ||
ARG EXTENSION_NAME | ||
ARG EXTENSION_VERSION | ||
|
||
# Extension build dependencies | ||
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_html5_email_address" | ||
version = "1.2.2" | ||
version = "1.2.3" | ||
repository = "https://github.com/bigsmoke/pg_html5_email_address" | ||
license = "PostgreSQL" | ||
description = "PostgreSQL email validation that is consistent with the HTML5 spec." | ||
categories = ["data_transformations"] | ||
|
||
[build] | ||
postgres_version = "15" | ||
postgres_version = "17" | ||
platform = "linux/amd64" | ||
dockerfile = "Dockerfile" | ||
install_command = """ | ||
cd pg_html5_email_address && 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
ARG PG_VERSION | ||
FROM quay.io/coredb/pgrx-builder:pg${PG_VERSION}-pgrx0.12.6 | ||
|
||
ARG PG_VERSION | ||
ARG EXTENSION_NAME | ||
ARG EXTENSION_VERSION | ||
|
||
USER root | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \ | ||
&& /root/.cargo/bin/rustup default stable \ | ||
&& git clone --depth 1 --branch v${EXTENSION_VERSION} https://github.com/supabase/${EXTENSION_NAME}.git \ | ||
&& cd ${EXTENSION_NAME} \ | ||
&& cargo pgrx init --pg${PG_VERSION}=/usr/bin/pg_config \ | ||
&& cargo pgrx package |
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,18 @@ | ||
[extension] | ||
name = "pg_jsonschema" | ||
version = "0.3.3" | ||
repository = "https://github.com/supabase/pg_jsonschema" | ||
license = "Apache-2.0" | ||
description = "PostgreSQL extension providing JSON Schema validation." | ||
homepage = "https://github.com/supabase/pg_jsonschema" | ||
documentation = "https://github.com/supabase/pg_jsonschema/blob/master/README.md" | ||
categories = ["data_transformations"] | ||
|
||
[dependencies] | ||
apt = ["libc6"] | ||
|
||
[build] | ||
postgres_version = "17" | ||
platform = "linux/amd64" | ||
dockerfile = "Dockerfile" | ||
install_command = "cd pg_jsonschema && cargo pgrx install --release" |