Skip to content

Commit 2b58472

Browse files
committed
Added docker image for Postgres 12.10 and plv8 2.3.14
1 parent 2c6f15c commit 2b58472

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

docker-compose.yml

+3
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,6 @@ services:
8989

9090
postgresql-12.5-plv8-2.3.14:
9191
build: postgresql-12.5-plv8-2.3.14
92+
93+
postgresql-12.10-plv8-2.3.14:
94+
build: postgresql-12.10-plv8-2.3.14
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
FROM postgres:12.10
2+
3+
MAINTAINER Bartek "Draakhan" Szymański <[email protected]>
4+
5+
ENV PLV8_VERSION=2.3.14
6+
ENV MAKE_DEPENDENCIES="wget build-essential libc++-dev libc++abi-dev pkg-config libtinfo5 ca-certificates git python postgresql-server-dev-$PG_MAJOR"
7+
ENV RUNTIME_DEPENDENCIES="libc++1"
8+
9+
# Build and install plv8 extension from sources.
10+
RUN apt-get update \
11+
&& apt-get install -y --no-install-recommends ${MAKE_DEPENDENCIES} ${RUNTIME_DEPENDENCIES} \
12+
&& git config --global user.email "[email protected]" \
13+
&& git config --global user.name "Bartek \"Draakhan\" Szymański" \
14+
&& wget https://github.com/plv8/plv8/archive/v${PLV8_VERSION}.tar.gz \
15+
&& tar -xvzf v${PLV8_VERSION}.tar.gz \
16+
&& make --directory plv8-${PLV8_VERSION} static \
17+
&& make --directory plv8-${PLV8_VERSION} install \
18+
# Clean up
19+
&& apt-get clean \
20+
&& apt-get remove -y ${MAKE_DEPENDENCIES} \
21+
&& apt-get autoremove -y \
22+
&& rm v${PLV8_VERSION}.tar.gz \
23+
&& rm -rf plv8-${PLV8_VERSION} \
24+
&& rm -rf /root/.vpython-root \
25+
&& rm -rf /root/.vpython_cipd_cache \
26+
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)