Skip to content

Commit

Permalink
Build count_distinct from PGXN releases
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Jan 9, 2025
1 parent 02e7192 commit d898fce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions contrib/count_distinct/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
ARG PG_VERSION
FROM quay.io/coredb/c-builder:pg${PG_VERSION}

# Clone and build the extension.
# Download and build extension
ARG EXTENSION_NAME
# ARG EXTENSION_VERSION
ARG RELEASE=8f4883a
RUN git clone https://github.com/tvondra/${EXTENSION_NAME}.git \
&& cd ${EXTENSION_NAME} \
&& git checkout ${RELEASE} \
&& make
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}
2 changes: 1 addition & 1 deletion contrib/count_distinct/Trunk.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ apt = ["libc6"]
postgres_version = "17"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = "make -C count_distinct install"
install_command = "make install"

0 comments on commit d898fce

Please sign in to comment.