Skip to content

Commit f57279e

Browse files
committed
Postgresql 9.5.24 with plv8 2.1.2 image added
1 parent 2970f1b commit f57279e

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

Diff for: docker-compose.yml

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ services:
33
postgresql-9.5.23-plv8-2.1.2:
44
build: postgresql-9.5.23-plv8-2.1.2
55

6+
postgresql-9.5.24-plv8-2.1.2:
7+
build: postgresql-9.5.24-plv8-2.1.2
8+
69
postgresql-9.6.9-plv8-2.1.2:
710
build: postgresql-9.6.9-plv8-2.1.2
811

Diff for: postgresql-9.5.24-plv8-2.1.2/Dockerfile

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
FROM postgres:9.5.24
2+
3+
MAINTAINER Bartek "Draakhan" Szymański <[email protected]>
4+
5+
ENV PLV8_VERSION=2.1.2
6+
ENV MAKE_DEPENDENCIES="wget build-essential ca-certificates git python postgresql-server-dev-$PG_MAJOR"
7+
8+
# Build and install plv8 extension from sources.
9+
RUN apt-get update \
10+
&& apt-get install -y --no-install-recommends ${MAKE_DEPENDENCIES} \
11+
&& wget https://github.com/plv8/plv8/archive/v${PLV8_VERSION}.tar.gz \
12+
&& tar -xvzf v${PLV8_VERSION}.tar.gz \
13+
# The maintainers of the plv8 extension forgot to change the version number in the makefile:
14+
# https://github.com/plv8/plv8/blob/v2.1.2/Makefile
15+
# https://github.com/plv8/plv8/commit/b4a81cdd1939d24d537132bb4b2f8ea85b3c915c
16+
&& sed -i 's/2.1.1/2.1.2/g' plv8-${PLV8_VERSION}/Makefile \
17+
&& make --directory plv8-${PLV8_VERSION} static \
18+
&& make --directory plv8-${PLV8_VERSION} install \
19+
# Clean up
20+
&& apt-get clean \
21+
&& apt-get remove -y ${MAKE_DEPENDENCIES} \
22+
&& apt-get autoremove -y \
23+
&& rm v${PLV8_VERSION}.tar.gz \
24+
&& rm -rf plv8-${PLV8_VERSION} \
25+
&& rm -rf /root/.vpython-root \
26+
&& rm -rf /root/.vpython_cipd_cache \
27+
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)