Merge branch 'fix-postgresql-client-builds' into 'master'

Use stretch repos of PostgreSQL and fix the postgresql-client packagen ame

See merge request gitlab-org/gitlab-build-images!170
This commit is contained in:
Rémy Coutable 2019-04-02 13:38:23 +00:00
commit 85d47bb29f

View file

@ -6,10 +6,10 @@ POSTGRES_VERSION=${1:-9.6}
export DEBIAN_FRONTEND=noninteractive
curl -sS -L https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
echo "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg ${POSTGRES_VERSION}" | tee /etc/apt/sources.list.d/postgresql.list
echo "deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main" | tee /etc/apt/sources.list.d/postgresql.list
apt-get update
apt-get install -y postgresql-client
apt-get install -y postgresql-client-${POSTGRES_VERSION}
apt-get autoremove -yq
apt-get clean -yqq