1
0
mirror of https://github.com/docker-library/postgres.git synced 2025-07-28 10:42:06 +03:00

PG15 alpine: enable Zstandard builds

This commit is contained in:
ImreSamu
2022-06-30 08:55:31 +02:00
committed by Tianon Gravi
parent 13c3f7a50f
commit 7b8a5db552
2 changed files with 10 additions and 0 deletions

3
15/alpine/Dockerfile generated
View File

@ -66,6 +66,8 @@ RUN set -eux; \
icu-dev \ icu-dev \
# https://www.postgresql.org/docs/14/release-14.html#id-1.11.6.5.5.3.7 # https://www.postgresql.org/docs/14/release-14.html#id-1.11.6.5.5.3.7
lz4-dev \ lz4-dev \
# https://www.postgresql.org/docs/15/release-15.html "--with-zstd to enable Zstandard builds"
zstd-dev \
; \ ; \
\ \
cd /usr/src/postgresql; \ cd /usr/src/postgresql; \
@ -110,6 +112,7 @@ RUN set -eux; \
--with-icu \ --with-icu \
--with-llvm \ --with-llvm \
--with-lz4 \ --with-lz4 \
--with-zstd \
; \ ; \
make -j "$(nproc)" world; \ make -j "$(nproc)" world; \
make install-world; \ make install-world; \

View File

@ -63,6 +63,10 @@ RUN set -eux; \
{{ if .major >= 14 then ( -}} {{ if .major >= 14 then ( -}}
# https://www.postgresql.org/docs/14/release-14.html#id-1.11.6.5.5.3.7 # https://www.postgresql.org/docs/14/release-14.html#id-1.11.6.5.5.3.7
lz4-dev \ lz4-dev \
{{ ) else "" end -}}
{{ if .major >= 15 then ( -}}
# https://www.postgresql.org/docs/15/release-15.html "--with-zstd to enable Zstandard builds"
zstd-dev \
{{ ) else "" end -}} {{ ) else "" end -}}
; \ ; \
\ \
@ -111,6 +115,9 @@ RUN set -eux; \
{{ ) else "" end -}} {{ ) else "" end -}}
{{ if .major >= 14 then ( -}} {{ if .major >= 14 then ( -}}
--with-lz4 \ --with-lz4 \
{{ ) else "" end -}}
{{ if .major >= 15 then ( -}}
--with-zstd \
{{ ) else "" end -}} {{ ) else "" end -}}
; \ ; \
make -j "$(nproc)" world; \ make -j "$(nproc)" world; \