From 83465a1be6e9518e565d8a87e16c88293b277aa1 Mon Sep 17 00:00:00 2001 From: Lukas Fittl Date: Tue, 5 Dec 2017 20:17:53 -0800 Subject: [PATCH] Update to PostgreSQL 10 --- Dockerfile | 12 ++++++------ codeship-steps.yml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6f8c66a..bb445b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,11 +12,11 @@ RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-k RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main' >> /etc/apt/sources.list.d/pgdg.list RUN apt-get update && \ - apt-get install -y postgresql-9.6 postgresql-contrib-9.6 && \ + apt-get install -y postgresql-10 postgresql-contrib-10 && \ rm -rf /var/lib/apt/lists/* -RUN pg_dropcluster --stop 9.6 main && \ - pg_createcluster --locale en_US.UTF-8 --start 9.6 main +RUN pg_dropcluster --stop 10 main && \ + pg_createcluster --locale en_US.UTF-8 --start 10 main RUN echo "\ synchronous_commit = off\n\ @@ -24,13 +24,13 @@ fsync = off\n\ full_page_writes = off\n\ wal_writer_delay = 5000ms\n\ listen_addresses = '*'\n\ -" >> /etc/postgresql/9.6/main/postgresql.conf +" >> /etc/postgresql/10/main/postgresql.conf -RUN echo 'host all all 0.0.0.0/0 password' >> /etc/postgresql/9.6/main/pg_hba.conf +RUN echo 'host all all 0.0.0.0/0 password' >> /etc/postgresql/10/main/pg_hba.conf RUN service postgresql start && \ su postgres -c "psql -c \"ALTER USER postgres PASSWORD 'password'\"" && \ service postgresql stop USER postgres -CMD ["/usr/lib/postgresql/9.6/bin/postgres", "-D", "/var/lib/postgresql/9.6/main", "-c", "config_file=/etc/postgresql/9.6/main/postgresql.conf"] +CMD ["/usr/lib/postgresql/10/bin/postgres", "-D", "/var/lib/postgresql/10/main", "-c", "config_file=/etc/postgresql/10/main/postgresql.conf"] diff --git a/codeship-steps.yml b/codeship-steps.yml index 3c6fd43..cc79f49 100644 --- a/codeship-steps.yml +++ b/codeship-steps.yml @@ -5,6 +5,6 @@ type: push service: pgci image_name: codeship/pgci - image_tag: 9.6 + image_tag: 10 registry: https://index.docker.io/v1/ encrypted_dockercfg_path: dockercfg.encrypted