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

Update to 9.5.0

This commit is contained in:
Tianon Gravi
2016-01-07 10:27:31 -08:00
parent 4774c03af4
commit 2c72165e4f
3 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ RUN mkdir /docker-entrypoint-initdb.d
RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8
ENV PG_MAJOR 9.5
ENV PG_VERSION 9.5~rc1-1.pgdg80+1
ENV PG_VERSION 9.5.0-1.pgdg80+2
RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main' $PG_MAJOR > /etc/apt/sources.list.d/pgdg.list

View File

@ -3,7 +3,7 @@ set -e
declare -A aliases
aliases=(
[9.4]='9 latest'
[9.5]='9 latest'
)
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"

View File

@ -15,11 +15,11 @@ mainList="$(curl -fsSL "$packagesBase/main/binary-amd64/Packages.bz2" | bunzip2)
travisEnv=
for version in "${versions[@]}"; do
versionList="$(echo "$mainList"; curl -fsSL "$packagesBase/$version/binary-amd64/Packages.bz2" | bunzip2)"
fullVersion="$(echo "$versionList" | awk -F ': ' '$1 == "Package" { pkg = $2 } $1 == "Version" && pkg == "postgresql-'"$version"'" { print $2 }')"
fullVersion="$(echo "$versionList" | awk -F ': ' '$1 == "Package" { pkg = $2 } $1 == "Version" && pkg == "postgresql-'"$version"'" { print $2; exit }' || true)"
(
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.template > "$version/Dockerfile"
)
travisEnv='\n - VERSION='"$version$travisEnv"