From 51b3489b4d1c77231678a077f11932d7335e1ffa Mon Sep 17 00:00:00 2001 From: Ry Walker <4283+ryw@users.noreply.github.com> Date: Wed, 19 Jul 2023 20:52:48 -0400 Subject: [PATCH] Add Hydra Columnar (#240) Co-authored-by: Ian Stanton --- contrib/columnar/14/Dockerfile | 18 ++++++++++++++++++ contrib/columnar/14/Trunk.toml | 20 ++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 contrib/columnar/14/Dockerfile create mode 100644 contrib/columnar/14/Trunk.toml diff --git a/contrib/columnar/14/Dockerfile b/contrib/columnar/14/Dockerfile new file mode 100644 index 00000000..781ffd96 --- /dev/null +++ b/contrib/columnar/14/Dockerfile @@ -0,0 +1,18 @@ +ARG PG_VERSION=14 +FROM quay.io/coredb/c-builder:pg${PG_VERSION} +USER root + +# Extension build dependencies +RUN apt-get update && apt-get install -y \ + lsb-release gcc make libssl-dev autoconf pkg-config \ + libcurl4-gnutls-dev \ + liblz4-dev libzstd-dev + +# Clone repository +RUN git clone https://github.com/hydradatabase/hydra + +RUN cd hydra/columnar && \ + git checkout 0.3.0-alpha && \ + ./configure && \ + make + diff --git a/contrib/columnar/14/Trunk.toml b/contrib/columnar/14/Trunk.toml new file mode 100644 index 00000000..e0538993 --- /dev/null +++ b/contrib/columnar/14/Trunk.toml @@ -0,0 +1,20 @@ +[extension] +name = "hydra_columnar" +version = "0.3.0" +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"] + +[build] +postgres_version = "14" +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 + """