anchor.diff:    && dpkg -i elasticsearch-${ELASTICSEARCH_VERSION}.deb \
     && dpkg -i logstash_${LOGSTASH_VERSION}_all.deb
   
  +
   RUN sed -i 's/JDK_DIRS=".*"/JDK_DIRS="\/opt\/java\/jdk1.8.0_33"/' etc/init.d/elasticsearch \
     && sed -i 's/#network.host: .*/network.host: localhost/' /etc/elasticsearch/elasticsearch.yml \
     && sed -i 's/#LS_OPTS=""/LS_OPTS="-w 4"/' /etc/default/logstash \
     && sed -i 's/#LS_HEAP_SIZE="500m"/LS_HEAP_SIZE="1024m"/' /etc/default/logstash \
     && sed -i '/export PATH/a export JAVA_HOME=\/opt\/java\/jdk1.8.0_33' /etc/init.d/logstash
   
  +
   RUN curl -sL https://deb.nodesource.com/setup | sudo bash - \
     && apt-get install nodejs nginx apache2-utils -y -qq
  +
   
   RUN tar -xf /tmp/kibana-${KIBANA_VERSION}-linux-x86.tar.gz -C /opt \
     && mv /opt/kibana-${KIBANA_VERSION}-linux-x86 /opt/kibana \
  
positive.code: # Upgrade packages
  RUN apt-get -q update \
    && apt-get --force-yes -y -qq upgrade
  
  ENV ELASTICSEARCH_VERSION 1.6.0
  ENV LOGSTASH_VERSION 1.5.1-1
  
negative.code: ADD ./patches/opt/logstash/vendor/jruby/lib/jni/arm-Linux/ /opt/logstash/vendor/jruby/lib/jni/arm-Linux
  ADD ./patches/usr/local/bin/ /usr/local/bin/
  
  
  RUN update-rc.d kibana4_init defaults 95 10 \
    && update-rc.d elasticsearch defaults 95 10 \
    && update-rc.d logstash defaults 95 10
  
  
  RUN chmod 1777 /tmp \
    && addgroup logstash adm
  
  
  RUN mkdir -p /var/run/elasticsearch
  
  
  # Clean rootfs from image-builder
  RUN /usr/local/sbin/builder-leave
  