Skip to content

Commit

Permalink
Add pg_tle (#255)
Browse files Browse the repository at this point in the history
Co-authored-by: Evan Stanton <evanstanton@Evans-MBP.fritz.box>
  • Loading branch information
EvanHStanton and Evan Stanton authored Jul 21, 2023
1 parent 43647cc commit fb99ce9
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
12 changes: 12 additions & 0 deletions contrib/pg_tle/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
20 changes: 20 additions & 0 deletions contrib/pg_tle/Trunk.toml
Original file line number Diff line number Diff line change
@@ -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
"""

0 comments on commit fb99ce9

Please sign in to comment.