anchor.diff:  
   #supervisor
   EXPOSE 9001
  -
  -#start
  -ENTRYPOINT ["/etc/entrypoint.sh"]
  
positive.code: 
  # install spark
  RUN curl -s http://www.apache.org/dist/spark/spark-$SPARK_VERSION/spark-$SPARK_VERSION-bin-hadoop$HADOOP_PROFILE.tgz | tar -xz -C /usr/local/
  RUN cd /usr/local && ln -s spark-$SPARK_VERSION-bin-hadoop$HADOOP_PROFILE spark
  
  # install mesos
  RUN wget http://repos.mesosphere.com/el/7/x86_64/RPMS/mesos-1.3.0-2.0.2.el7.x86_64.rpm
  RUN rpm -Uvh mesos-1.3.0-2.0.2.el7.x86_64.rpm
  
  
  # update boot script
  COPY ./spark/entrypoint.sh /etc/entrypoint.sh
  #COPY ./spark/supervisord.conf /etc/supervisord.conf
  RUN chown root.root /etc/entrypoint.sh
  RUN chmod 700 /etc/entrypoint.sh
  
  
  RUN cp $SPARK_HOME/conf/spark-env.sh.template $SPARK_HOME/conf/spark-env.sh
  RUN echo "export MESOS_NATIVE_JAVA_LIBRARY=/usr/lib/libmesos.so" >> $SPARK_HOME/conf/spark-env.sh
  
  RUN cp $SPARK_HOME/conf/spark-defaults.conf.template $SPARK_HOME/conf/spark-defaults.conf
  RUN echo "spark.master mesos://spark:5050" >> $SPARK_HOME/conf/spark-defaults.conf
  RUN echo "spark.mesos.executor.home /usr/local/spark" >> $SPARK_HOME/conf/spark-defaults.conf
  
  #spark
  EXPOSE 8080 7077 7072 8081 8082
  
negative.code: 
  ENV SPARK_PROFILE 2.1
  ENV SPARK_VERSION 2.1.1
  ENV FLINK_VERSION 1.3.1
  ENV HADOOP_PROFILE 2.7
  ENV HADOOP_VERSION 2.7.0
  ENV SPARK_HOME /usr/local/spark/
  