anchor.diff:  MAINTAINER tech@flow.io
   
   RUN apt-get update
  -RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main' >> /etc/apt/sources.list.d/postgresql.list
  -RUN apt-get install -y --no-install-recommends ca-certificates wget sudo
  +RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main' >> /etc/apt/sources.list.d/postgresql.list
  +
  +# see: https://serverfault.com/questions/949991/how-to-install-tzdata-on-a-ubuntu-docker-image
  +# set noninteractive installation
  +RUN export DEBIAN_FRONTEND=noninteractive
  +
  +# install tzdata package
  +RUN apt-get install -y tzdata
  +
  +# set your timezone
  +RUN ln -fs /usr/share/zoneinfo/UTC /etc/localtime
  +RUN dpkg-reconfigure --frontend noninteractive tzdata
  +
  +RUN apt-get install -y --no-install-recommends ca-certificates wget sudo gnupg
   RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
   
   RUN apt-get update
  -RUN apt-get install -y postgresql-10
  +RUN apt-get install -y postgresql-11
   RUN apt-get install -y --no-install-recommends git
   RUN apt-get install -y --no-install-recommends ruby
   RUN apt-get install -y --no-install-recommends curl
  
positive.code: FROM ubuntu:16.04
  
  # This is a common docker file for flow that is used to create
  # containers running specific versions of an applications schema. This
  
negative.code: RUN ruby ./configure.rb --prefix /usr/local
  RUN ./install.rb
  
  RUN sed -i 's/peer/trust/' /etc/postgresql/11/main/pg_hba.conf
  RUN sed -i 's/md5/trust/' /etc/postgresql/11/main/pg_hba.conf
  RUN sed -i 's/127.0.0.1\/32/0.0.0.0\/0/' /etc/postgresql/11/main/pg_hba.conf
  RUN cat /etc/postgresql/11/main/pg_hba.conf
  
  RUN cat "/etc/init.d/postgresql"
  
  RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql
  
  WORKDIR /var/lib/postgresql/11/main
  RUN ln -s /etc/postgresql/11/main/postgresql.conf
  
  RUN sed -i 's/include_dir/#include_dir/' /etc/postgresql/11/main/postgresql.conf
  
  VOLUME /var/lib/postgresql/11/base
  EXPOSE 5432
  
  # see - https://github.com/nimiq/docker-postgresql93/pull/4/files
  