anchor.diff:              # Required for /usr/local/bin/patroni
               python3 python3-pkg-resources python3-setuptools \
               ${BUILD_PACKAGES} \
  -
  -    # install pam_oauth2.so
  -    && curl -s -L https://github.com/zalando-incubator/pam-oauth2/archive/$PAM_OAUTH_COMMIT.zip > pam-oauth2.zip \
  -    && unzip pam-oauth2.zip \
  -    && cd pam-oauth2-$PAM_OAUTH_COMMIT \
  -    && curl -s -L https://github.com/zserge/jsmn/archive/$JSMN_COMMIT.zip > jsmn.zip \
  -    && unzip jsmn.zip \
  -    && rm -fr jsmn && mv jsmn-$JSMN_COMMIT jsmn \
  -    && make install \
  -    && cd .. \
  -    && rm -fr pam-oauth2* \
   
       # install extensions for old postgres versions
       && export OLD_PATH=$PATH \
  
positive.code: FROM ubuntu:14.04
  MAINTAINER Oleksii Kliukin <oleksii.kliukin@zalando.de>
  
  # Install curl, jq, vim, gdb, strace
  RUN export DEBIAN_FRONTEND=noninteractive \
      && apt-get update \
      && echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/01norecommend \
      && echo 'APT::Install-Suggests "0";' >> /etc/apt/apt.conf.d/01norecommend \
  
      && apt-get upgrade -y \
      && apt-get install -y curl ca-certificates jq pv vim gdb strace supervisor stunnel realpath \
  
      ## Make sure we have a en_US.UTF-8 locale available
      && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 \
  
      # Clean up
      && apt-get clean \
      && rm -rf /var/lib/apt/lists/*
  
  
negative.code: ## 3 Remove tools only required for build
  ENV PATRONIVERSION=1.2.3
  ENV WALE_VERSION=1.0.2
  RUN export DEBIAN_FRONTEND=noninteractive \
      export BUILD_PACKAGES="postgresql-server-dev-${PGVERSION} python3-pip python3-dev build-essential pgxnclient" \
      export PGXN_EXTENSIONS="quantile trimmed_aggregates" \
      && apt-get update \
      && apt-get install -y \
  