From fb99ce950cb6b96f22e4d220c8d78c997f8d311e Mon Sep 17 00:00:00 2001 From: Evan H Stanton <79367212+EvanHStanton@users.noreply.github.com> Date: Fri, 21 Jul 2023 16:11:03 +0200 Subject: [PATCH] Add pg_tle (#255) Co-authored-by: Evan Stanton --- contrib/pg_tle/Dockerfile | 12 ++++++++++++ contrib/pg_tle/Trunk.toml | 20 ++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 contrib/pg_tle/Dockerfile create mode 100644 contrib/pg_tle/Trunk.toml diff --git a/contrib/pg_tle/Dockerfile b/contrib/pg_tle/Dockerfile new file mode 100644 index 00000000..22514e98 --- /dev/null +++ b/contrib/pg_tle/Dockerfile @@ -0,0 +1,12 @@ +ARG PG_VERSION=15 +FROM quay.io/coredb/c-builder:pg${PG_VERSION} + +# Clone repository +RUN git clone https://github.com/aws/pg_tle.git + +ARG RELEASE=v1.0.4 + +RUN cd pg_tle && \ + git fetch origin ${RELEASE} && \ + git checkout ${RELEASE} && \ + make diff --git a/contrib/pg_tle/Trunk.toml b/contrib/pg_tle/Trunk.toml new file mode 100644 index 00000000..575ad6fd --- /dev/null +++ b/contrib/pg_tle/Trunk.toml @@ -0,0 +1,20 @@ +[extension] +name = "pg_tle" +version = "1.0.4" +repository = "https://github.com/aws/pg_tle" +license = "Apache-2.0" +description = "Framework for building trusted language extensions for PostgreSQL." +homepage = "https://aws.amazon.com/" +documentation = "https://github.com/aws/pg_tle/tree/main/docs" +categories = ["procedural_languages"] + +[build] +postgres_version = "15" +platform = "linux/amd64" +dockerfile = "Dockerfile" +install_command = """ + cd pg_tle && 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 + """