1
0
mirror of https://github.com/docker-library/postgres.git synced 2025-07-29 21:41:20 +03:00

Add more minor tweaks to generate-stackbrew-library.sh and update.sh

This commit is contained in:
Tianon Gravi
2014-08-01 15:48:37 -06:00
parent f627096ef6
commit 4540606ea2
3 changed files with 21 additions and 2 deletions

View File

@ -17,7 +17,8 @@ for version in "${versions[@]}"; do
fullVersion="$(grep -m1 -A10 "^Package: postgresql-$version\$" "$packages" | grep -m1 '^Version: ' | cut -d' ' -f2)"
(
set -x
cp Dockerfile.template "$version/Dockerfile"
cp docker-entrypoint.sh Dockerfile.template "$version/"
mv "$version/Dockerfile.template" "$version/Dockerfile"
sed -i 's/%%PG_MAJOR%%/'$version'/g; s/%%PG_VERSION%%/'$fullVersion'/g' "$version/Dockerfile"
)
done