anchor.diff:  ARG SPARK_VERSION=2.4.6
  +ARG HADOOP_VERSION=2.7
   ARG SPARK_HOME=/opt/spark
   ARG JDK_VERSION=8u192
   ARG JDK_URL=your_jdk_url
  
positive.code: RUN apt-get update --fix-missing && \
      apt-get install -y apt-utils vim curl nano wget unzip maven git && \
  # java
      wget $JDK_URL && \
      gunzip jdk-$JDK_VERSION-linux-x64.tar.gz && \
      tar -xf jdk-$JDK_VERSION-linux-x64.tar -C /opt && \
      rm jdk-$JDK_VERSION-linux-x64.tar && \
      mv /opt/jdk* /opt/jdk$JDK_VERSION && \
      ln -s /opt/jdk$JDK_VERSION /opt/jdk && \
  # spark
      wget https://archive.apache.org/dist/spark/spark-${SPARK_VERSION}/spark-${SPARK_VERSION}-bin-hadoop2.7.tgz && \
      tar -zxvf spark-${SPARK_VERSION}-bin-hadoop2.7.tgz && \
      mv spark-${SPARK_VERSION}-bin-hadoop2.7 /opt/spark && \
      rm spark-${SPARK_VERSION}-bin-hadoop2.7.tgz && \
      cp /opt/spark/kubernetes/dockerfiles/spark/entrypoint.sh /opt 
  
  RUN ln -fs /bin/bash /bin/sh
  
negative.code: # stage.1 jdk & spark
  FROM ubuntu:18.04 as spark
  ARG SPARK_VERSION
  ARG HADOOP_VERSION
  ARG JDK_VERSION
  ARG JDK_URL
  ARG SPARK_HOME
  