Skip to content

Commit

Permalink
add plls (#221)
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 14, 2023
1 parent b7d59e5 commit 74445ea
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
32 changes: 32 additions & 0 deletions contrib/plls/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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 \
libtinfo5 \
build-essential \
ninja-build \
python3 \
pkg-config


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

ARG RELEASE=v3.1.7

RUN cd plv8 && \
git fetch origin ${RELEASE} && \
git checkout ${RELEASE} && \
make
19 changes: 19 additions & 0 deletions contrib/plls/Trunk.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[extension]
name = "plls"
version = "3.1.7"
repository = "https://github.com/plv8/plv8"
license = "Copyright"
description = "PL/LiveScript (v8) trusted procedural language."
documentation = "https://plv8.github.io/"
categories = ["procedural_languages"]

[build]
postgres_version = "15"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = """
cd plv8 && make install
find /usr/share/postgresql/15/extension -type f -iname '*plv8*' -exec rm {} +
find /usr/share/postgresql/15/extension -type f -iname '*coffee*' -exec rm {} +
find /usr/lib/postgresql/15/lib -type f -iname '*coffee*' -exec rm {} +
"""

0 comments on commit 74445ea

Please sign in to comment.