You've already forked postgres
mirror of
https://github.com/docker-library/postgres.git
synced 2025-07-28 10:42:06 +03:00
Fix new zstd support for alpine images
In e8ebf74e50
zstd was installed as build
dependency and thus does not end up in the final image which in turn
renders docker-entrypoint.sh broken when using *.sql.zst files.
This commit is contained in:
2
10/alpine/Dockerfile
generated
2
10/alpine/Dockerfile
generated
@ -61,7 +61,6 @@ RUN set -eux; \
|
|||||||
tcl-dev \
|
tcl-dev \
|
||||||
util-linux-dev \
|
util-linux-dev \
|
||||||
zlib-dev \
|
zlib-dev \
|
||||||
zstd \
|
|
||||||
# https://www.postgresql.org/docs/10/static/release-10.html#id-1.11.6.9.5.13
|
# https://www.postgresql.org/docs/10/static/release-10.html#id-1.11.6.9.5.13
|
||||||
icu-dev \
|
icu-dev \
|
||||||
; \
|
; \
|
||||||
@ -127,6 +126,7 @@ RUN set -eux; \
|
|||||||
# tzdata is optional, but only adds around 1Mb to image size and is recommended by Django documentation:
|
# tzdata is optional, but only adds around 1Mb to image size and is recommended by Django documentation:
|
||||||
# https://docs.djangoproject.com/en/1.10/ref/databases/#optimizing-postgresql-s-configuration
|
# https://docs.djangoproject.com/en/1.10/ref/databases/#optimizing-postgresql-s-configuration
|
||||||
tzdata \
|
tzdata \
|
||||||
|
zstd \
|
||||||
; \
|
; \
|
||||||
apk del --no-network .build-deps; \
|
apk del --no-network .build-deps; \
|
||||||
cd /; \
|
cd /; \
|
||||||
|
2
11/alpine/Dockerfile
generated
2
11/alpine/Dockerfile
generated
@ -62,7 +62,6 @@ RUN set -eux; \
|
|||||||
tcl-dev \
|
tcl-dev \
|
||||||
util-linux-dev \
|
util-linux-dev \
|
||||||
zlib-dev \
|
zlib-dev \
|
||||||
zstd \
|
|
||||||
# https://www.postgresql.org/docs/10/static/release-10.html#id-1.11.6.9.5.13
|
# https://www.postgresql.org/docs/10/static/release-10.html#id-1.11.6.9.5.13
|
||||||
icu-dev \
|
icu-dev \
|
||||||
; \
|
; \
|
||||||
@ -129,6 +128,7 @@ RUN set -eux; \
|
|||||||
# tzdata is optional, but only adds around 1Mb to image size and is recommended by Django documentation:
|
# tzdata is optional, but only adds around 1Mb to image size and is recommended by Django documentation:
|
||||||
# https://docs.djangoproject.com/en/1.10/ref/databases/#optimizing-postgresql-s-configuration
|
# https://docs.djangoproject.com/en/1.10/ref/databases/#optimizing-postgresql-s-configuration
|
||||||
tzdata \
|
tzdata \
|
||||||
|
zstd \
|
||||||
; \
|
; \
|
||||||
apk del --no-network .build-deps; \
|
apk del --no-network .build-deps; \
|
||||||
cd /; \
|
cd /; \
|
||||||
|
2
12/alpine/Dockerfile
generated
2
12/alpine/Dockerfile
generated
@ -62,7 +62,6 @@ RUN set -eux; \
|
|||||||
tcl-dev \
|
tcl-dev \
|
||||||
util-linux-dev \
|
util-linux-dev \
|
||||||
zlib-dev \
|
zlib-dev \
|
||||||
zstd \
|
|
||||||
# https://www.postgresql.org/docs/10/static/release-10.html#id-1.11.6.9.5.13
|
# https://www.postgresql.org/docs/10/static/release-10.html#id-1.11.6.9.5.13
|
||||||
icu-dev \
|
icu-dev \
|
||||||
; \
|
; \
|
||||||
@ -129,6 +128,7 @@ RUN set -eux; \
|
|||||||
# tzdata is optional, but only adds around 1Mb to image size and is recommended by Django documentation:
|
# tzdata is optional, but only adds around 1Mb to image size and is recommended by Django documentation:
|
||||||
# https://docs.djangoproject.com/en/1.10/ref/databases/#optimizing-postgresql-s-configuration
|
# https://docs.djangoproject.com/en/1.10/ref/databases/#optimizing-postgresql-s-configuration
|
||||||
tzdata \
|
tzdata \
|
||||||
|
zstd \
|
||||||
; \
|
; \
|
||||||
apk del --no-network .build-deps; \
|
apk del --no-network .build-deps; \
|
||||||
cd /; \
|
cd /; \
|
||||||
|
2
13/alpine/Dockerfile
generated
2
13/alpine/Dockerfile
generated
@ -62,7 +62,6 @@ RUN set -eux; \
|
|||||||
tcl-dev \
|
tcl-dev \
|
||||||
util-linux-dev \
|
util-linux-dev \
|
||||||
zlib-dev \
|
zlib-dev \
|
||||||
zstd \
|
|
||||||
# https://www.postgresql.org/docs/10/static/release-10.html#id-1.11.6.9.5.13
|
# https://www.postgresql.org/docs/10/static/release-10.html#id-1.11.6.9.5.13
|
||||||
icu-dev \
|
icu-dev \
|
||||||
; \
|
; \
|
||||||
@ -129,6 +128,7 @@ RUN set -eux; \
|
|||||||
# tzdata is optional, but only adds around 1Mb to image size and is recommended by Django documentation:
|
# tzdata is optional, but only adds around 1Mb to image size and is recommended by Django documentation:
|
||||||
# https://docs.djangoproject.com/en/1.10/ref/databases/#optimizing-postgresql-s-configuration
|
# https://docs.djangoproject.com/en/1.10/ref/databases/#optimizing-postgresql-s-configuration
|
||||||
tzdata \
|
tzdata \
|
||||||
|
zstd \
|
||||||
; \
|
; \
|
||||||
apk del --no-network .build-deps; \
|
apk del --no-network .build-deps; \
|
||||||
cd /; \
|
cd /; \
|
||||||
|
2
14/alpine/Dockerfile
generated
2
14/alpine/Dockerfile
generated
@ -62,7 +62,6 @@ RUN set -eux; \
|
|||||||
tcl-dev \
|
tcl-dev \
|
||||||
util-linux-dev \
|
util-linux-dev \
|
||||||
zlib-dev \
|
zlib-dev \
|
||||||
zstd \
|
|
||||||
# https://www.postgresql.org/docs/10/static/release-10.html#id-1.11.6.9.5.13
|
# https://www.postgresql.org/docs/10/static/release-10.html#id-1.11.6.9.5.13
|
||||||
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
|
||||||
@ -132,6 +131,7 @@ RUN set -eux; \
|
|||||||
# tzdata is optional, but only adds around 1Mb to image size and is recommended by Django documentation:
|
# tzdata is optional, but only adds around 1Mb to image size and is recommended by Django documentation:
|
||||||
# https://docs.djangoproject.com/en/1.10/ref/databases/#optimizing-postgresql-s-configuration
|
# https://docs.djangoproject.com/en/1.10/ref/databases/#optimizing-postgresql-s-configuration
|
||||||
tzdata \
|
tzdata \
|
||||||
|
zstd \
|
||||||
; \
|
; \
|
||||||
apk del --no-network .build-deps; \
|
apk del --no-network .build-deps; \
|
||||||
cd /; \
|
cd /; \
|
||||||
|
@ -58,7 +58,6 @@ RUN set -eux; \
|
|||||||
tcl-dev \
|
tcl-dev \
|
||||||
util-linux-dev \
|
util-linux-dev \
|
||||||
zlib-dev \
|
zlib-dev \
|
||||||
zstd \
|
|
||||||
# https://www.postgresql.org/docs/10/static/release-10.html#id-1.11.6.9.5.13
|
# https://www.postgresql.org/docs/10/static/release-10.html#id-1.11.6.9.5.13
|
||||||
icu-dev \
|
icu-dev \
|
||||||
{{ if .major >= 14 then ( -}}
|
{{ if .major >= 14 then ( -}}
|
||||||
@ -134,6 +133,7 @@ RUN set -eux; \
|
|||||||
# tzdata is optional, but only adds around 1Mb to image size and is recommended by Django documentation:
|
# tzdata is optional, but only adds around 1Mb to image size and is recommended by Django documentation:
|
||||||
# https://docs.djangoproject.com/en/1.10/ref/databases/#optimizing-postgresql-s-configuration
|
# https://docs.djangoproject.com/en/1.10/ref/databases/#optimizing-postgresql-s-configuration
|
||||||
tzdata \
|
tzdata \
|
||||||
|
zstd \
|
||||||
; \
|
; \
|
||||||
apk del --no-network .build-deps; \
|
apk del --no-network .build-deps; \
|
||||||
cd /; \
|
cd /; \
|
||||||
|
Reference in New Issue
Block a user