anchor.diff:      cp /usr/lib/x86_64-linux-gnu/libpython3.6m.so /usr/lib/libpython3.6m.so && \
       sed -i 's/examples/\/ppml\/trusted-big-data-ml\/work\/spark-3.1.2\/examples/' /ppml/trusted-big-data-ml/work/spark-3.1.2/examples/src/main/python/sql/basic.py && \
       sed -i 's/examples/\/ppml\/trusted-big-data-ml\/work\/spark-3.1.2\/examples/' /ppml/trusted-big-data-ml/work/spark-3.1.2/examples/src/main/python/sql/hive.py && \
  +    sed -i 's/spark-warehouse/\/ppml\/trusted-big-data-ml\/work\/spark-warehouse/' /ppml/trusted-big-data-ml/work/spark-3.1.2/examples/src/main/python/sql/hive.py && \
       chmod a+x /ppml/trusted-big-data-ml/init.sh && \
       chmod a+x /ppml/trusted-big-data-ml/clean.sh && \
       chmod a+x /ppml/trusted-big-data-ml/start-spark-local-train-sgx.sh && \
  
positive.code:         -Dhttps.proxyPort=$HTTPS_PROXY_PORT" && \
      /opt/apache-maven-3.6.3/bin/mvn -T 16 -DskipTests=true clean package && \
      mv /opt/hadoop/hadoop-common-project/hadoop-common/target/hadoop-common-3.2.0.jar /opt/spark-${SPARK_VERSION}/jars/hadoop-common-3.2.0.jar
  
  # stage.3 bigdl
  FROM ubuntu:18.04 as bigdl
  
negative.code:     make install && \
      protoc --version && \
      cd /opt && \
      git clone https://github.com/analytics-zoo/hadoop.git && \
      cd hadoop && \
      git checkout branch-3.2.0-ppml && \
      cd hadoop-common-project/hadoop-common && \
      export MAVEN_OPTS="-Xmx2g -XX:ReservedCodeCacheSize=512m \
          -Dhttp.proxyHost=$HTTP_PROXY_HOST \
          -Dhttp.proxyPort=$HTTP_PROXY_PORT \
  