anchor.diff:    echo "INCLUDE_DIRS += ${JAVA_HOME}/include" >> Makefile.config && \
     echo "CPU_ONLY := 1" >> Makefile.config && \
     popd
  +
  +# Install Spark and Hadoop
  +RUN bash ${CAFFE_ON_SPARK}/scripts/local-setup-hadoop.sh && \
  +  bash ${CAFFE_ON_SPARK}/scripts/local-setup-spark.sh \
  +
  +ENV HADOOP_HOME ${pwd}/hadoop-2.6.4
  +ENV SPARK_HOME ${pwd}/spark-1.6.0-bin-hadoop2.6
  +ENV PATH ${HADOOP_HOME}/bin:${SPARK_HOME}/bin:${SPARK_HOME}/sbin:${PATH}
   
   # Build CaffeOnSpark
   RUN pushd ${CAFFE_ON_SPARK} && \
  
positive.code: 
  
  # Set ~/caffe as working directory
  WORKDIR $(CAFFE_ON_SPARK)
  
negative.code: ENV JAVA_HOME /usr/lib/jvm/java-8-oracle
  
  # Get CaffeOnSpark
  RUN cd ${pwd} && git clone https://github.com/yahoo/CaffeOnSpark.git --recursive
  ENV CAFFE_ON_SPARK ${pwd}/CaffeOnSpark
  
  # Configure CaffeOnSpark
  RUN pushd ${CAFFE_ON_SPARK}/caffe-public/ && \
  