-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
73e7922
commit b752a98
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
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 \ | ||
libperl-dev \ | ||
perl | ||
|
||
# Clone repository | ||
RUN git clone https://github.com/postgres/postgres.git | ||
|
||
ARG PG_VERSION=15 | ||
|
||
RUN cd postgres && \ | ||
git fetch origin REL_${PG_VERSION}_STABLE && \ | ||
git checkout REL_${PG_VERSION}_STABLE && \ | ||
./configure --with-perl && \ | ||
cd src/pl/plperl && \ | ||
make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[extension] | ||
name = "plperl" | ||
version = "1.0.0" | ||
repository = "https://github.com/postgres/postgres/tree/master/src/pl/plperl" | ||
license = "PostgreSQL" | ||
description = "The PL/Perl procedural language for PostgreSQL." | ||
homepage = "https://www.postgresql.org" | ||
documentation = "https://www.postgresql.org/docs/current/plperl.html" | ||
categories = ["procedural_language"] | ||
|
||
[build] | ||
postgres_version = "15" | ||
platform = "linux/amd64" | ||
dockerfile = "Dockerfile" | ||
install_command = """ | ||
make -C postgres/src/pl/plperl install | ||
set -x | ||
mv /usr/local/pgsql/share/extension/plperl.* /usr/share/postgresql/15/extension | ||
mv /usr/local/pgsql/share/extension/plperl--* /usr/share/postgresql/15/extension | ||
mv /usr/local/pgsql/lib/plperl.* /usr/lib/postgresql/15/lib | ||
mv /usr/local/pgsql/lib/plperl--* /usr/lib/postgresql/15/lib | ||
""" | ||
|