anchor.diff:      JIRA_HOME=/var/atlassian/jira \
       JIRA_INSTALL=/opt/jira \
       JIRA_SCRIPTS=/usr/local/share/atlassian \
  -    JVM_MYSQL_CONNECTOR_URL="http://dev.mysql.com/get/Downloads/Connector-J" \
  +    MYSQL_CONNECTOR_URL="http://dev.mysql.com/get/Downloads/Connector-J" \
       DOWNLOAD_URL="https://www.atlassian.com/software/jira/downloads/binary"
   
  -ENV JAVA_HOME=$JIRA_INSTALL/jre
  -ENV PATH=$PATH:$JAVA_HOME/bin \
  +ENV JAVA_HOME=${JIRA_INSTALL}/jre
  +ENV PATH=$PATH:${JAVA_HOME}/bin \
       LANG=${ISO_LANGUAGE}_${ISO_COUNTRY}.UTF-8
   
   COPY scripts/* ${JIRA_SCRIPTS}/
  
positive.code:     export MYSQL_CONNECTOR_TAR=${MYSQL_CONNECTOR}.tar.gz && \
      export MYSQL_CONNECTOR_BIN=${MYSQL_CONNECTOR}-bin.jar && \
      rm -f ${JIRA_INSTALL}/lib/mysql-connector-java*.jar && \
      wget -q -O /tmp/${MYSQL_CONNECTOR_TAR} ${JVM_MYSQL_CONNECTOR_URL}/${MYSQL_CONNECTOR_TAR} && \
      tar xzf /tmp/${MYSQL_CONNECTOR_TAR} --directory=/tmp && \
      mv /tmp/${MYSQL_CONNECTOR}/${MYSQL_CONNECTOR_BIN} ${JIRA_INSTALL}/lib/${MYSQL_CONNECTOR_BIN}
  
  
negative.code:     keytool -trustcacerts -keystore ${KEYSTORE} -storepass changeit -noprompt -importcert -alias letsencryptauthorityx1 -file /tmp/lets-encrypt-x1-cross-signed.der && \
      keytool -trustcacerts -keystore ${KEYSTORE} -storepass changeit -noprompt -importcert -alias letsencryptauthorityx2 -file /tmp/lets-encrypt-x2-cross-signed.der && \
      keytool -trustcacerts -keystore ${KEYSTORE} -storepass changeit -noprompt -importcert -alias letsencryptauthorityx3 -file /tmp/lets-encrypt-x3-cross-signed.der && \
      keytool -trustcacerts -keystore ${KEYSTORE} -storepass changeit -noprompt -importcert -alias letsencryptauthorityx4 -file /tmp/lets-encrypt-x4-cross-signed.der
  
  # install (upgrade) new dockerized toolbox
  RUN wget -q -O /tmp/dockerize.tar.gz https://github.com/jwilder/dockerize/releases/download/${DOCKERIZE_VERSION}/dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz && \
  