anchor.diff:          # patch, build and install pgbouncer
           apt-get source pgbouncer \
           && cd $(ls -d pgbouncer-*) \
  -        # Set last_connect_time for pool only when it really failed to connect
  -        && curl -sL https://github.com/pgbouncer/pgbouncer/pull/127.diff | patch -p1 \
  +        # Enable pam authentication support via HBA
           && curl -sL https://github.com/pgbouncer/pgbouncer/pull/326.diff \
               | sed -n '/^diff --git a\/src\/client.c b\/src\/client.c/,$ p' | patch -p1 \
           # Increase password size
  
positive.code: ARG PGVERSION=11
  
  FROM ubuntu:18.04 as builder
  
  ARG DEMO=false
  
  RUN export DEBIAN_FRONTEND=noninteractive \
      && echo 'APT::Install-Recommends "0";\nAPT::Install-Suggests "0";' > /etc/apt/apt.conf.d/01norecommend \
  
negative.code:     && find /var/log -type f -exec truncate --size 0 {} \;
  
  # Install patroni, wal-e and wal-g
  ENV PATRONIVERSION=1.6.0
  ENV WALE_VERSION=1.1.0
  ENV WALG_VERSION=v0.2.9
  RUN export DEBIAN_FRONTEND=noninteractive \
  