anchor.diff:  #       allows the RUN command to span multiple lines.
   RUN /etc/init.d/postgresql start && psql --command "CREATE USER docker WITH SUPERUSER PASSWORD 'docker';" &&\
       createdb -O docker docker
  -
   # Adjust PostgreSQL configuration so that remote connections to the
   # database are possible.
   RUN echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/9.3/main/pg_hba.conf
   # And add ``listen_addresses`` to ``/etc/postgresql/9.3/main/postgresql.conf``
   RUN echo "listen_addresses='*'" >> /etc/postgresql/9.3/main/postgresql.conf
  -
   # Switch back to root
   USER root
   
  
positive.code: ADD config/buddycloud-bind-zone-conf.local /tmp/buddycloud-bind-zone-conf.local
  RUN cat /tmp/buddycloud-bind-zone-conf.local >> /etc/bind/named.conf.local
  ADD config/buddycloud-bind-zone.conf /etc/bind/db.buddycloud.dev
  RUN service bind9 restart
  
  # Setup XMPP-layer
  RUN apt-get install -y --no-install-recommends prosody lua-zlib lua-cyrussasl
  ADD config/prosody.cfg.lua /etc/prosody/prosody.cfg.lua
  RUN service prosody restart
  
  # Setup buddycloud-layer
  RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends openjdk-7-jre-headless dbconfig-common
  
negative.code: RUN a2enmod proxy_wstunnel rewrite ssl headers expires
  RUN a2dissite buddycloud-apache-virtual-host
  RUN a2ensite buddycloud-apache-virtual-host
  
  EXPOSE 80 443 5222 5269
  
  