anchor.diff:  FROM phusion/baseimage:0.9.18
   MAINTAINER MagicDude4Eva, https://github.com/magicdude4eva/docker-smokeping
  -
  -# ========================================================================================
  -# Adjust syslog-ng
  -RUN \
  -    # Update repository and install syslog-ng
  -    apt-get update \
  -&&  apt-get install -y syslog-ng \
  -    # Adjusting SyslogNG - see https://github.com/phusion/baseimage-docker/pull/223/commits/dda46884ed2b1b0f7667b9cc61a961e24e910784
  -&&  sed -ie "s/^       system();$/#      system(); #This is to avoid calls to \/proc\/kmsg inside docker/g" /etc/syslog-ng/syslog-ng.conf
  -
   
   # ========================================================================================
   # ====== PhantomJS
  
positive.code: &&  ln -s /etc/smokeping/apache2.conf /etc/apache2/conf-available/apache2.conf \
  &&  a2enconf apache2 \
  &&  a2enmod cgid \
  &&  apt-get clean \
  &&  rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  
  
negative.code: &&  chmod a+x /usr/local/bin/speedtest-cli
  
  
  # ========================================================================================
  # Adjust syslog-ng / cleanup
  RUN \
      # Update repository and install syslog-ng
      apt-get update \
  &&  apt-get install -y syslog-ng \
      # Adjusting SyslogNG - see https://github.com/phusion/baseimage-docker/pull/223/commits/dda46884ed2b1b0f7667b9cc61a961e24e910784
  &&  sed -ie "s/^       system();$/#      system(); #This is to avoid calls to \/proc\/kmsg inside docker/g" /etc/syslog-ng/syslog-ng.conf \
  &&  apt-get autoremove -y \
  &&  apt-get clean 
  
  
  
  # Use baseimage-docker's init system
  CMD ["/sbin/my_init"]
  
  