summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2018-05-03 18:48:46 +0200
committerYorhel <git@yorhel.nl>2018-05-03 18:57:11 +0200
commit1f0d541feae8ce2a715ff17068d5bc5712da69b9 (patch)
tree5cda6d17d4f9098c19713fd9b403a9aeb494bd16
parent7346cd7ce251287c403207739864d61695ff6bde (diff)
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)
-rw-r--r--Dockerfile4
-rwxr-xr-xutil/docker-init.sh6
2 files changed, 5 insertions, 5 deletions
diff --git a/Dockerfile b/Dockerfile
index faf90437..3c3d2027 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM ubuntu:rolling
+FROM ubuntu:bionic
MAINTAINER Yoran Heling <contact@vndb.org>
RUN apt-get update
@@ -6,7 +6,7 @@ RUN apt-get update
RUN apt-get install -y locales && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8
-RUN apt-get install -y --no-install-recommends \
+RUN apt-get install -y tzdata && apt-get install -y --no-install-recommends \
build-essential \
cpanminus \
git \
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
}