From 1f0d541feae8ce2a715ff17068d5bc5712da69b9 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Thu, 3 May 2018 18:48:46 +0200 Subject: Docker: Update to Ubuntu Bionic + Postgres 10 !ACTION REQUIRED! If you don't really care about the data in your Docker's Postgres DB, then you can just update with: docker volume rm vndb-data docker volume create --name vndb-data docker build --pull --no-cache -t vndb . If you do want to keep your data, the process is roughly as follows: - Do a pg_dumpall from your current docker image to save the data. - Run the above commands to upgrade - Import the database in the new docker image (cherry picked from commit c278eec720b78624580f844d8289ddb575035138) --- util/docker-init.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'util') diff --git a/util/docker-init.sh b/util/docker-init.sh index 9cf07d32..d4e0e65c 100755 --- a/util/docker-init.sh +++ b/util/docker-init.sh @@ -34,9 +34,9 @@ mkdevuser() { pg_start() { - echo 'local all postgres peer' >/etc/postgresql/9.6/main/pg_hba.conf - echo 'local all all md5' >>/etc/postgresql/9.6/main/pg_hba.conf - # I'm glad Ubuntu 17.10 still has an init script for this + echo 'local all postgres peer' >/etc/postgresql/10/main/pg_hba.conf + echo 'local all all md5' >>/etc/postgresql/10/main/pg_hba.conf + # I'm glad Ubuntu 18.04 still has an init script for this /etc/init.d/postgresql start } -- cgit v1.2.3