Skip to content

Commit 98a1148

Browse files
Add support for Postgres 13
1 parent 9633009 commit 98a1148

File tree

3 files changed

+44
-3
lines changed

3 files changed

+44
-3
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ env:
1717
- VERSION=10-2
1818
- VERSION=11-2
1919
- VERSION=12-2
20+
- VERSION=13-2
2021

2122
language: bash
2223

13-2/Dockerfile

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
FROM postgres:13
2+
3+
MAINTAINER Chia-liang Kao <[email protected]>
4+
5+
ENV PLV8_VERSION=2.3.15 \
6+
PLV8_SHASUM="8a05f9d609bb79e47b91ebc03ea63b3f7826fa421a0ee8221ee21581d68cb5ba"
7+
8+
RUN buildDependencies="build-essential \
9+
ca-certificates \
10+
curl \
11+
git-core \
12+
python \
13+
gpp \
14+
cpp \
15+
pkg-config \
16+
apt-transport-https \
17+
cmake \
18+
libc++-dev \
19+
libc++abi-dev \
20+
postgresql-server-dev-$PG_MAJOR" \
21+
&& runtimeDependencies="libc++1 \
22+
libtinfo5 \
23+
libc++abi1" \
24+
&& apt-get update \
25+
&& apt-get install -y --no-install-recommends ${buildDependencies} ${runtimeDependencies} \
26+
&& mkdir -p /tmp/build \
27+
&& curl -o /tmp/build/v$PLV8_VERSION.tar.gz -SL "https://github.com/plv8/plv8/archive/v${PLV8_VERSION}.tar.gz" \
28+
&& cd /tmp/build \
29+
&& echo $PLV8_SHASUM v$PLV8_VERSION.tar.gz | sha256sum -c \
30+
&& tar -xzf /tmp/build/v$PLV8_VERSION.tar.gz -C /tmp/build/ \
31+
&& cd /tmp/build/plv8-$PLV8_VERSION \
32+
&& make static \
33+
&& make install \
34+
&& strip /usr/lib/postgresql/${PG_MAJOR}/lib/plv8-${PLV8_VERSION}.so \
35+
&& rm -rf /root/.vpython_cipd_cache /root/.vpython-root \
36+
&& apt-get clean \
37+
&& apt-get remove -y ${buildDependencies} \
38+
&& apt-get autoremove -y \
39+
&& rm -rf /tmp/build /var/lib/apt/lists/*

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# postgres-plv8
22

3-
Docker images for running [plv8](https://github.com/plv8/plv8) 1.4, 1.5 and 2.x on Postgres 9.4, 9.5, 9.6, 10, 11 and 12. Based on the [official Postgres image](http://registry.hub.docker.com/_/postgres/).
3+
Docker images for running [plv8](https://github.com/plv8/plv8) 1.4, 1.5 and 2.x on Postgres 9.4, 9.5, 9.6, 10, 11, 12 and 13.
4+
Based on the [official Postgres image](http://registry.hub.docker.com/_/postgres/).
45

56
[![clkao/postgres-plv8][docker-pulls-image]][docker-hub-url] [![clkao/postgres-plv8][docker-stars-image]][docker-hub-url] [![clkao/postgres-plv8][docker-size-image]][docker-hub-url] [![clkao/postgres-plv8][docker-layers-image]][docker-hub-url]
67

78
## Tags
8-
9-
- `12-2`, `latest` ([12-2/Dockerfile](https://github.com/clkao/docker-postgres-plv8/blob/master/12-2/Dockerfile))
9+
- `13-2`, `latest` ([12-3/Dockerfile](https://github.com/clkao/docker-postgres-plv8/blob/master/13-2/Dockerfile))
10+
- `12` ([12-2/Dockerfile](https://github.com/clkao/docker-postgres-plv8/blob/master/12-2/Dockerfile))
1011
- `11-2` ([11-2/Dockerfile](https://github.com/clkao/docker-postgres-plv8/blob/master/11-2/Dockerfile))
1112
- `10-2` ([10-2/Dockerfile](https://github.com/clkao/docker-postgres-plv8/blob/master/10-2/Dockerfile))
1213
- `9.6-2`, ([9.6-2/Dockerfile](https://github.com/clkao/docker-postgres-plv8/blob/master/9.6-2/Dockerfile))

0 commit comments

Comments
 (0)