You've already forked postgres
mirror of
https://github.com/docker-library/postgres.git
synced 2025-07-28 10:42:06 +03:00
Add workaround for https://bugs.debian.org/929417 when building 13 from source
This commit is contained in:
@ -118,6 +118,8 @@ RUN set -ex; \
|
||||
\
|
||||
# build .deb files from upstream's source packages (which are verified by apt-get)
|
||||
apt-get update; \
|
||||
# we need DEBIAN_FRONTEND on postgresql-13 for slapd ("Please enter the password for the admin entry in your LDAP directory."); see https://bugs.debian.org/929417
|
||||
DEBIAN_FRONTEND=noninteractive \
|
||||
apt-get build-dep -y \
|
||||
postgresql-common pgdg-keyring \
|
||||
"postgresql-$PG_MAJOR=$PG_VERSION" \
|
||||
|
@ -118,6 +118,8 @@ RUN set -ex; \
|
||||
\
|
||||
# build .deb files from upstream's source packages (which are verified by apt-get)
|
||||
apt-get update; \
|
||||
# we need DEBIAN_FRONTEND on postgresql-13 for slapd ("Please enter the password for the admin entry in your LDAP directory."); see https://bugs.debian.org/929417
|
||||
DEBIAN_FRONTEND=noninteractive \
|
||||
apt-get build-dep -y \
|
||||
postgresql-common pgdg-keyring \
|
||||
"postgresql-$PG_MAJOR=$PG_VERSION" \
|
||||
|
@ -125,6 +125,10 @@ for version in "${versions[@]}"; do
|
||||
sed -i -e '/postgresql-contrib-/d' "$version/Dockerfile"
|
||||
fi
|
||||
|
||||
if [ "$majorVersion" != '13' ]; then
|
||||
sed -i -e '/DEBIAN_FRONTEND/d' "$version/Dockerfile"
|
||||
fi
|
||||
|
||||
# TODO figure out what to do with odd version numbers here, like release candidates
|
||||
srcVersion="${fullVersion%%-*}"
|
||||
# change "10~beta1" to "10beta1" for ftp urls
|
||||
|
Reference in New Issue
Block a user