anchor.diff:  # Copyright 2015 Oscar Cortez
   
  -FROM ubuntu:14.04
  +FROM ubuntu
   
   RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
  +
  +RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8
  +RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" > /etc/apt/sources.list.d/pgdg.list
   
   # Enable multiverse
   RUN sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list
  
positive.code: # Install base packages
  run apt-get update
  run apt-get upgrade -y
  run apt-get update &&  apt-get install -y -q \
       git \
       curl \
       mercurial \
       python \ 
       python-setuptools \ 
       python-software-properties \
       nginx \
       supervisor 
  
  run apt-get update && apt-get install -y -q \
      postgresql postgresql-9.1 \
      postgresql-contrib postgresql-contrib-9.1 \
      postgresql-common
  
  # Install pip
  run easy_install pip
  
  # Install uwsgi now because it takes a little while
  run pip install uwsgi
  
  # Install fabric
  run pip install fabric
  
  # Intall virtualenv
  run pip install virtualenv
  
  # Create a virtualenv replace te env_name
  run mkvirtualenv docker
  
  # Install our code
  add . /home/docker/code/
  
  # Setup all the configfiles NGINX
  run echo "daemon off;" >> /etc/nginx/nginx.conf
  
negative.code: ADD postgresql.conf /etc/postgresql/9.3/main/postgresql.conf
  ADD pg_hba.conf /etc/postgresql/9.3/main/pg_hba.conf
  RUN chown postgres:postgres /etc/postgresql/9.3/main/*.conf
  # ADD run /usr/local/bin/run
  # RUN chmod +x /usr/local/bin/run
  
  VOLUME ["/var/lib/postgresql"]
  
  # Expose ports private only
  EXPOSE 80 
  EXPOSE 5432 
  
  CMD ["/usr/local/bin/run"]
  CMD ["supervisord", "-n"]
  