diff --git a/contrib/zson/Dockerfile b/contrib/zson/Dockerfile new file mode 100644 index 00000000..1ddc7ec9 --- /dev/null +++ b/contrib/zson/Dockerfile @@ -0,0 +1,15 @@ +# Set PostgreSQL version +ARG PG_VERSION=15 +FROM quay.io/coredb/c-builder:pg${PG_VERSION} + +# Clone repository +RUN git clone https://github.com/postgrespro/zson.git + +# Set project version +ARG RELEASE=v1.1 + +# Build extension +RUN cd zson && \ + git fetch origin ${RELEASE} && \ + git checkout ${RELEASE} && \ + make diff --git a/contrib/zson/Trunk.toml b/contrib/zson/Trunk.toml new file mode 100644 index 00000000..31d11573 --- /dev/null +++ b/contrib/zson/Trunk.toml @@ -0,0 +1,19 @@ +[extension] +name = "zson" +version = "1.1.0" +repository = "https://github.com/postgrespro/zson" +license = "MIT" +description = "ZSON is a PostgreSQL extension for transparent JSONB compression." +documentation = "https://github.com/postgrespro/zson" +categories = ["data_transformations"] + +[build] +postgres_version = "15" +platform = "linux/amd64" +dockerfile = "Dockerfile" +install_command = """ + cd zson && 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 + """