8000 Docker solution now runs r3.0alpha version of v8 as well #8 · thedemodev/supabase-postgres@a97b00c · GitHub
[go: up one dir, main page]

Skip to content

Commit a97b00c

Browse files
committed
Docker solution now runs r3.0alpha version of v8 as well supabase#8
1 parent f94eb15 commit a97b00c

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

docker/Dockerfile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ RUN apt-get update \
2424
&& apt-get install postgresql-plpython3-12 -y
2525

2626
# install plv8
27-
ENV PLV8_VERSION=2.3.13 \
28-
PLV8_SHASUM="1a96c559d98ad757e7494bf7301f0e6b0dd2eec6066ad76ed36cc13fec4f2390"
27+
ENV PLV8_VERSION=r3.0alpha
2928

3029
RUN buildDependencies="build-essential \
3130
ca-certificates \
@@ -46,14 +45,12 @@ RUN buildDependencies="build-essential \
4645
&& apt-get update \
4746
&& apt-get install -y --no-install-recommends ${buildDependencies} ${runtimeDependencies} \
4847
&& mkdir -p /tmp/build \
49-
&& curl -o /tmp/build/v$PLV8_VERSION.tar.gz -SL "https://github.com/plv8/plv8/archive/v${PLV8_VERSION}.tar.gz" \
5048
&& cd /tmp/build \
51-
&& echo $PLV8_SHASUM v$PLV8_VERSION.tar.gz | sha256sum -c \
52-
&& tar -xzf /tmp/build/v$PLV8_VERSION.tar.gz -C /tmp/build/ \
53-
&& cd /tmp/build/plv8-$PLV8_VERSION \
49+
&& git clone https://github.com/plv8/plv8.git \
50+
&& cd plv8 \
51+
&& git checkout ${PLV8_VERSION} \
5452
&& make static \
5553
&& make install \
56-
&& strip /usr/lib/postgresql/${PG_MAJOR}/lib/plv8-${PLV8_VERSION}.so \
5754
&& rm -rf /root/.vpython_cipd_cache /root/.vpython-root \
5855
&& apt-get clean \
5956
&& apt-get remove -y ${buildDependencies} \

0 commit comments

Comments
 (0)
0