You've already forked postgres
mirror of
https://github.com/docker-library/postgres.git
synced 2025-07-26 23:21:10 +03:00
Sync a bit more with the Debian configure flags (adding comments for where we differ) and add all versions (including "update.sh" and "generate-stackbrew-library.sh" changes, with our new template)
This commit is contained in:
20
update.sh
20
update.sh
@ -19,9 +19,25 @@ for version in "${versions[@]}"; do
|
||||
(
|
||||
set -x
|
||||
cp docker-entrypoint.sh "$version/"
|
||||
sed 's/%%PG_MAJOR%%/'"$version"'/g; s/%%PG_VERSION%%/'"$fullVersion"'/g' Dockerfile.template > "$version/Dockerfile"
|
||||
sed 's/%%PG_MAJOR%%/'"$version"'/g; s/%%PG_VERSION%%/'"$fullVersion"'/g' Dockerfile-debian.template > "$version/Dockerfile"
|
||||
)
|
||||
|
||||
|
||||
# TODO figure out what to do with odd version numbers here, like release candidates
|
||||
srcVersion="${fullVersion%%-*}"
|
||||
srcSha256="$(curl -fsSL "https://ftp.postgresql.org/pub/source/v${srcVersion}/postgresql-${srcVersion}.tar.bz2.sha256" | cut -d' ' -f1)"
|
||||
for variant in alpine; do
|
||||
if [ ! -d "$version/$variant" ]; then
|
||||
continue
|
||||
fi
|
||||
(
|
||||
set -x
|
||||
cp docker-entrypoint.sh "$version/$variant/"
|
||||
sed -i 's/gosu/su-exec/g' "$version/$variant/docker-entrypoint.sh"
|
||||
sed 's/%%PG_MAJOR%%/'"$version"'/g; s/%%PG_VERSION%%/'"$srcVersion"'/g; s/%%PG_SHA256%%/'"$srcSha256"'/g' Dockerfile-$variant.template > "$version/$variant/Dockerfile"
|
||||
)
|
||||
travisEnv="\n - VERSION=$version VARIANT=$variant$travisEnv"
|
||||
done
|
||||
|
||||
travisEnv='\n - VERSION='"$version$travisEnv"
|
||||
done
|
||||
|
||||
|
Reference in New Issue
Block a user