Skip to content

Commit

Permalink
Add Hydra Columnar (#240)
Browse files Browse the repository at this point in the history
Co-authored-by: Ian Stanton <ian@coredb.io>
  • Loading branch information
ryw and ianstanton authored Jul 20, 2023
1 parent a465062 commit 51b3489
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
18 changes: 18 additions & 0 deletions contrib/columnar/14/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

20 changes: 20 additions & 0 deletions contrib/columnar/14/Trunk.toml
Original file line number Diff line number Diff line change
@@ -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
"""

0 comments on commit 51b3489

Please sign in to comment.