Add an image for updated postgresql-client

This commit is contained in:
Lin Jen-Shin 2017-03-23 21:05:02 +08:00
parent 6993033ae4
commit 4332356fd4
3 changed files with 24 additions and 0 deletions

10
scripts/install-postgresql Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
set -xeo pipefail
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 main" | tee /etc/apt/sources.list.d/postgresql.list
apt-get update
env DEBIAN_FRONTEND="noninteractive" apt-get install -y postgresql-client
apt-get autoremove -yq