Skip to content

Commit

Permalink
Add Age
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Stanton authored and Evan Stanton committed Nov 10, 2023
1 parent 67cf073 commit 72097d0
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
41 changes: 41 additions & 0 deletions contrib/age/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Set the PostgreSQL version
ARG PG_VERSION=15
FROM quay.io/coredb/c-builder:pg${PG_VERSION}
USER root

# Extension build dependencies
RUN apt-get update && apt-get install -y \
build-essential \
libreadline-dev \
zlib1g-dev \
flex \
bison \
libxml2-dev \
libxslt-dev \
libssl-dev \
libxml2-utils \
xsltproc \
ccache \
python3 \
python3-dev \
python3-setuptools \
python3-pip && \
apt-get clean && rm -rf /var/lib/apt/lists/*

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

# Use argument to specify PostgreSQL release
ARG PG_RELEASE=REL_15_3

# Configure and build PostgreSQL
RUN cd postgres && \
git fetch origin ${PG_RELEASE} && \
git checkout ${PG_RELEASE} && \
./configure && \
cd contrib && \
git clone https://github.com/apache/age.git

RUN cd postgres/contrib/age && \
git checkout PG15/v1.4.0-rc0 && \
make
20 changes: 20 additions & 0 deletions contrib/age/Trunk.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[extension]
name = "age"
version = "1.4.0"
repository = "https://github.com/apache/age"
license = "Apache-2.0"
description = "Leverage a graph database on top of the existing relational database."
homepage = "https://age.apache.org/"
documentation = "https://age.apache.org/age-manual/master/index.html"
categories = ["data_transformations"]

[build]
postgres_version = "15"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = """
cd postgres/contrib/age && 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 72097d0

Please sign in to comment.