mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 18:12:55 +01:00
Use stretch repos of PostgreSQL
Signed-off-by: Balasankar "Balu" C <balasankar@gitlab.com>
This commit is contained in:
parent
132bafc2ff
commit
687520e804
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue