anchor.diff:    \
     `# Add LOGSERVER ip address to hekad config`; \
     LOGSERVER_IP=$(/sbin/ip route | awk '/default/ { print $3; }'); \
  -  sed -i "s/{{LOGSERVER_IP}}/$LOGSERVER_IP/g" /etc/hekad/aggregator_output.toml;
  -
  -# cleanup
  -RUN \
  +  sed -i "s/{{LOGSERVER_IP}}/$LOGSERVER_IP/g" /etc/hekad/aggregator_output.toml; \
  +  `###############################`; \
     `# CLEANUP`; \
  +  `###############################`; \
     rm -vrf /setupfiles;
   
  +CMD ["/usr/bin/supervisord", "--nodaemon"]
   
  -
  -# expose ports, add volumes and execute the CMD script
  +# sshd port
   EXPOSE 22
  +# hekad port
   EXPOSE 5565
  +# data volume
   VOLUME [ "/data" ]
  -CMD ["/usr/bin/supervisord", "--nodaemon"]
positive.code:     supervisor \
      cron;
  
  ## NO CACHING past this point ##
  
  # copy required conf files and folders
  ADD setupfiles/ /setupfiles/
  
negative.code:   `# Create cache directory`; \
    DIR_CACHE="/setupfiles/cache/"; \
    mkdir -vp $DIR_CACHE; \
    \
    `############################`; \
    `# put custom commands here`; \
    `############################`; \
    `# Install hekad`; \
    DL_PROTO="https://"; \
    DL_FILE="github.com/mozilla-services/heka/releases/download/v0.4.2/heka_0.4.2_amd64.deb"; \
  