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

Remove version from install_commands #851

Merged
merged 1 commit into from
Dec 16, 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
2 changes: 1 addition & 1 deletion .github/workflows/extensions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:
if: matrix.pg == 15
shell: bash -e {0}
run: |
for val in pg_cron timescaledb pg_search pg_analytics citus plrust; do
for val in pg_cron timescaledb pg_search pg_analytics citus plrust pg_net; do
if [[ "${{ matrix.ext.path }}" == *"$val"* ]]; then
echo handling shared_preload_libraries for $val
echo "shared_preload_libraries = '$val'" >> /var/lib/postgresql/data2/postgresql.conf
Expand Down
16 changes: 9 additions & 7 deletions contrib/emaj/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
ARG PG_VERSION=17
ARG PG_VERSION
FROM quay.io/coredb/c-builder:pg${PG_VERSION}
USER root

ARG RELEASE=4.5.0
RUN curl -O https://api.pgxn.org/dist/e-maj/${RELEASE}/e-maj-${RELEASE}.zip \
&& unzip e-maj-${RELEASE}.zip \
&& cd e-maj-${RELEASE} \
&& perl -i -pe 's/#directory/directory/' emaj.control \
ARG EXTENSION_NAME
ARG EXTENSION_VERSION

RUN curl -O https://api.pgxn.org/dist/e-maj/${EXTENSION_VERSION}/e-maj-${EXTENSION_VERSION}.zip \
&& unzip e-maj-${EXTENSION_VERSION}.zip \
&& cd e-maj-${EXTENSION_VERSION} \
&& perl -i -pe 's/#directory/directory/' ${EXTENSION_NAME}.control \
&& make
WORKDIR /app/e-maj-${EXTENSION_VERSION}
2 changes: 1 addition & 1 deletion contrib/emaj/Trunk.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ apt = ["libstdc++6", "libgcc-s1", "libc6"]
postgres_version = "17"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = "cd e-maj-4.5.0 && make install"
install_command = "make install"
12 changes: 7 additions & 5 deletions contrib/envvar/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
ARG PG_VERSION=17
ARG PG_VERSION
FROM quay.io/coredb/c-builder:pg${PG_VERSION}

ARG RELEASE=1.0.0
ARG EXTENSION_NAME
ARG EXTENSION_VERSION

# Extension build dependencies
RUN curl -O https://api.pgxn.org/dist/envvar/${RELEASE}/envvar-${RELEASE}.zip \
&& unzip envvar-${RELEASE}.zip \
&& cd envvar-${RELEASE} && make
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}
2 changes: 1 addition & 1 deletion contrib/envvar/Trunk.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ apt = ["libc6"]
postgres_version = "17"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = "cd envvar-1.0.0 && make install"
install_command = "make install"
29 changes: 13 additions & 16 deletions contrib/hydra_columnar/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
ARG PG_VERSION=15
ARG PG_VERSION
FROM quay.io/coredb/c-builder:pg${PG_VERSION}
USER root

# Extension build dependencies
RUN apt-get update && apt-get install -y \
build-essential \
libcurl4-openssl-dev \
liblz4-dev \
libzstd-dev

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

ARG RELEASE=v1.1.1
USER root
RUN apt-get update && apt-get install -y \
build-essential \
libcurl4-openssl-dev \
liblz4-dev \
libzstd-dev

RUN cd hydra/columnar && \
git checkout ${RELEASE} && \
./configure && \
make
# ARG EXTENSION_NAME
ARG EXTENSION_VERSION

RUN git clone --depth 1 --branch "v${EXTENSION_VERSION}" https://github.com/hydradatabase/hydra.git \
&& cd hydra/columnar \
&& ./configure \
&& make
12 changes: 3 additions & 9 deletions contrib/hydra_columnar/Trunk.toml
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
[extension]
name = "hydra_columnar"
version = "1.1.1"
version = "1.1.2"
repository = "https://github.com/hydradatabase/hydra"
license = "GNU AGPL"
description = "Columnar storage for Postgres"
homepage = "https://www.hydra.so"
documentation = "https://github.com/hydradatabase/hydra"
categories = ["analytics"]


[dependencies]
apt = ["libc6", "libzstd1", "liblz4-1"]

[build]
postgres_version = "15"
postgres_version = "16"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = """
cd hydra/columnar && 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 hydra/columnar install"
14 changes: 8 additions & 6 deletions contrib/jsonschema/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
ARG PG_VERSION=16
ARG PG_VERSION
FROM quay.io/coredb/pgrx-builder:pg${PG_VERSION}-pgrx0.12.9
USER root

ARG RELEASE=0.1.4
ARG EXTENSION_NAME
ARG EXTENSION_VERSION
USER root

# Extension build dependencies
RUN apt-get update && apt-get install -y build-essential \
Expand All @@ -11,7 +12,8 @@ RUN apt-get update && apt-get install -y build-essential \
# Set default Rust version
&& /root/.cargo/bin/rustup default stable \
# Download the source
&& curl -O https://api.pgxn.org/dist/jsonschema/${RELEASE}/jsonschema-${RELEASE}.zip \
&& unzip jsonschema-${RELEASE}.zip \
&& curl -O https://api.pgxn.org/dist/${EXTENSION_NAME}/${EXTENSION_VERSION}/${EXTENSION_NAME}-${EXTENSION_VERSION}.zip \
&& unzip ${EXTENSION_NAME}-${EXTENSION_VERSION}.zip \
# Build the extension
&& cd jsonschema-${RELEASE} && make pgrx-init && make
&& cd ${EXTENSION_NAME}-${EXTENSION_VERSION} && make pgrx-init && make
WORKDIR /app/${EXTENSION_NAME}-${EXTENSION_VERSION}
2 changes: 1 addition & 1 deletion contrib/jsonschema/Trunk.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ apt = ["libc6"]
postgres_version = "16"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = "cd jsonschema-0.1.4 && make install"
install_command = "make install"
17 changes: 7 additions & 10 deletions contrib/pg_net/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
ARG PG_VERSION=15
ARG PG_VERSION
FROM quay.io/coredb/c-builder:pg${PG_VERSION}
USER root

# Install dependencies
USER root
RUN apt-get update && apt-get install -y libcurl4-openssl-dev

ARG RELEASE=v0.7.1

# Clone repository
RUN git clone https://github.com/supabase/pg_net.git
ARG EXTENSION_NAME
ARG EXTENSION_VERSION

RUN cd pg_net && \
git fetch origin ${RELEASE} && \
git checkout ${RELEASE} && \
make
RUN git clone --depth 1 --branch "v${EXTENSION_VERSION}" https://github.com/supabase/${EXTENSION_NAME}.git \
&& cd ${EXTENSION_NAME} \
&& make
7 changes: 3 additions & 4 deletions contrib/pg_net/Trunk.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[extension]
name = "pg_net"
version = "0.7.1"
version = "0.7.3" # v0.8.0 and later require libcurl 7.83, but our image has 7.81. https://github.com/supabase/pg_net/issues/143
repository = "https://github.com/supabase/pg_net"
license = "Apache-2.0"
description = "A PostgreSQL extension providing an async networking interface accessible via SQL using a background worker and curl."
Expand All @@ -11,8 +11,7 @@ preload_libraries = ["pg_net"]
apt = ["libcurl4", "libc6"]

[build]
postgres_version = "15"
postgres_version = "17"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = "cd pg_net && make install"

install_command = "make -C pg_net install"
14 changes: 8 additions & 6 deletions contrib/plv8/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
ARG PG_VERSION=15
ARG PG_VERSION
FROM quay.io/coredb/c-builder:pg${PG_VERSION}
USER root

ARG RELEASE=3.2.3
RUN curl -O https://api.pgxn.org/dist/plv8/${RELEASE}/plv8-${RELEASE}.zip \
&& unzip plv8-${RELEASE}.zip \
&& cd plv8-${RELEASE} \
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}
4 changes: 2 additions & 2 deletions contrib/plv8/Trunk.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[extension]
name = "plv8"
version = "3.2.2"
version = "3.2.3"
repository = "https://github.com/plv8/plv8"
license = "Copyright"
description = "A procedural language in JavaScript powered by V8"
Expand All @@ -14,4 +14,4 @@ apt = ["libstdc++6", "libgcc-s1", "libc6"]
postgres_version = "15"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = "cd plv8-3.2.3 && make install"
install_command = "make install"
Loading