anchor.diff:      && HADOOP_DOWNLOAD_URL="${HADOOP_URL}hadoop-${HADOOP_VERSION}-${HADOOP_DISTRO}${HADOOP_DISTRO_VERSION}.tar.gz" \
       && HADOOP_TMP_FILE="/tmp/hadoop.tar.gz" \
       && mkdir -pv "${HADOOP_HOME}" \
  -    && curl -L "${HADOOP_DOWNLOAD_URL}" -o "${HADOOP_TMP_FILE}" \
  +    && curl --fail --location "${HADOOP_DOWNLOAD_URL}" --output "${HADOOP_TMP_FILE}" \
       && tar xzf "${HADOOP_TMP_FILE}" --absolute-names --strip-components 1 -C "${HADOOP_HOME}" \
       && rm "${HADOOP_TMP_FILE}" \
       && echo "Installing Hive" \
  
positive.code: ARG KUBECTL_VERSION="v1.15.3"
  
  RUN KUBECTL_URL="https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl" \
    && curl -L "${KUBECTL_URL}" -o "/usr/local/bin/kubectl" \
    && chmod +x /usr/local/bin/kubectl
  
  # Install Kind
  ARG KIND_VERSION="v0.6.1"
  
  RUN KIND_URL="https://github.com/kubernetes-sigs/kind/releases/download/${KIND_VERSION}/kind-linux-amd64" \
     && curl -L "${KIND_URL}" -o "/usr/local/bin/kind" \
     && chmod +x /usr/local/bin/kind
  
  # Install Apache RAT
  ARG RAT_VERSION="0.13"
  
  RUN RAT_URL="https://repo1.maven.org/maven2/org/apache/rat/apache-rat/${RAT_VERSION}/apache-rat-${RAT_VERSION}.jar" \
      && RAT_JAR="/opt/apache-rat.jar" \
      && RAT_JAR_MD5="${RAT_JAR}.md5" \
      && RAT_URL_MD5="${RAT_URL}.md5" \
      && echo "Downloading RAT from ${RAT_URL} to ${RAT_JAR}" \
      && curl -L "${RAT_URL}" -o "${RAT_JAR}" \
      && curl -L "${RAT_URL_MD5}" -o "${RAT_JAR_MD5}" \
      && jar -tf "${RAT_JAR}" > /dev/null \
      && md5sum -c <<<"$(cat "${RAT_JAR_MD5}") ${RAT_JAR}"
  
  # Setup PIP
  # By default PIP install run without cache to make image smaller
  
negative.code:     && MINICLUSTER_URL="${MINICLUSTER_BASE}${MINICLUSTER_VER}/minicluster-${MINICLUSTER_VER}-SNAPSHOT-bin.zip" \
      && MINICLUSTER_TMP_FILE="/tmp/minicluster.zip" \
      && mkdir -pv "${MINICLUSTER_HOME}" \
      && curl --fail --location "${MINICLUSTER_URL}" --output "${MINICLUSTER_TMP_FILE}" \
      && unzip "${MINICLUSTER_TMP_FILE}" -d "/opt" \
      && rm "${MINICLUSTER_TMP_FILE}"
  
  # Install Docker
  RUN curl --fail --location https://download.docker.com/linux/debian/gpg | apt-key add - \
      && add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian stretch stable" \
      && apt-get update \
      && apt-get -y install --no-install-recommends docker-ce \
  