anchor.diff:               ${JIRA_INSTALL}/conf/Catalina \
                ${JIRA_INSTALL}/lib
   
  -COPY scripts/* ${JIRA_SCRIPTS}/
  -
  -# install glibc using origin sources
  -RUN export GLIBC_VERSION=2.26-r0 && \
  -    apk add --update ca-certificates gzip curl xmlstarlet wget tzdata tini && \
  -    wget -q --directory-prefix=/tmp https://github.com/andyshinn/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-${GLIBC_VERSION}.apk && \
  -    wget -q --directory-prefix=/tmp https://github.com/andyshinn/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-bin-${GLIBC_VERSION}.apk && \
  -    wget -q --directory-prefix=/tmp https://github.com/andyshinn/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-i18n-${GLIBC_VERSION}.apk && \
  -    apk add --allow-untrusted /tmp/glibc-${GLIBC_VERSION}.apk && \
  -    apk add --allow-untrusted /tmp/glibc-bin-${GLIBC_VERSION}.apk && \
  -    apk add --allow-untrusted /tmp/glibc-i18n-${GLIBC_VERSION}.apk && \
  -    /usr/glibc-compat/bin/localedef -i ${ISO_LANGUAGE}_${ISO_COUNTRY} -f UTF-8 ${ISO_LANGUAGE}_${ISO_COUNTRY}.UTF-8 && \
  -    cp /usr/share/zoneinfo/${TIMEZONE} /etc/localtime && \
  -    echo "${TIMEZONE}" >/etc/timezone
  -
  -# --
  -# testblock_01_SOB
  -# --
   RUN export JIRA_BIN=atlassian-${JIRA_PRODUCT}-${JIRA_VERSION}-x64.bin && \
       mkdir -p ${JIRA_HOME}                           &&  \
       mkdir -p ${JIRA_INSTALL}                        &&  \
  
positive.code: # VERSION 1.0.7
  #
  
  FROM blacklabelops/alpine:3.7
  
  ARG ISO_LANGUAGE=en
  ARG ISO_COUNTRY=US
  ARG JIRA_VERSION=7.9.1
  ARG JIRA_PRODUCT=jira-software
  ARG MYSQL_CONNECTOR_VERSION=5.1.46
  ARG DOCKERIZE_VERSION=v0.6.1
  ARG CONTAINER_UID=1000
  ARG CONTAINER_GID=1000
  ARG BUILD_DATE=undefined
  
negative.code:     # Install database drivers
      rm -f                                               \
        ${JIRA_INSTALL}/lib/mysql-connector-java*.jar &&  \
      wget -O /tmp/mysql-connector-java-${MYSQL_DRIVER_VERSION}.tar.gz                                              \
        http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-${MYSQL_DRIVER_VERSION}.tar.gz      &&  \
      tar xzf /tmp/mysql-connector-java-${MYSQL_DRIVER_VERSION}.tar.gz                                              \
        --directory=/tmp                                                                                        &&  \
      cp /tmp/mysql-connector-java-${MYSQL_DRIVER_VERSION}/mysql-connector-java-${MYSQL_DRIVER_VERSION}-bin.jar     \
        ${JIRA_INSTALL}/lib/mysql-connector-java-${MYSQL_DRIVER_VERSION}-bin.jar                                &&  \
      # Add user
      export CONTAINER_USER=jira                      &&  \
      export CONTAINER_UID=1000                       &&  \
      export CONTAINER_GROUP=jira                     &&  \
      export CONTAINER_GID=1000                       &&  \
      addgroup -g $CONTAINER_GID $CONTAINER_GROUP     &&  \
      adduser -u $CONTAINER_UID                           \
              -G $CONTAINER_GROUP                         \
              -h /home/$CONTAINER_USER                    \
              -s /bin/bash                                \
              -S $CONTAINER_USER                      &&  \
      # Adding letsencrypt-ca to truststore
      export KEYSTORE=$JAVA_HOME/lib/security/cacerts && \
      wget -P /tmp/ https://letsencrypt.org/certs/letsencryptauthorityx1.der && \
      wget -P /tmp/ https://letsencrypt.org/certs/letsencryptauthorityx2.der && \
      wget -P /tmp/ https://letsencrypt.org/certs/lets-encrypt-x1-cross-signed.der && \
      wget -P /tmp/ https://letsencrypt.org/certs/lets-encrypt-x2-cross-signed.der && \
      wget -P /tmp/ https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.der && \
      wget -P /tmp/ https://letsencrypt.org/certs/lets-encrypt-x4-cross-signed.der && \
      keytool -trustcacerts -keystore $KEYSTORE -storepass changeit -noprompt -importcert -alias isrgrootx1 -file /tmp/letsencryptauthorityx1.der && \
      keytool -trustcacerts -keystore $KEYSTORE -storepass changeit -noprompt -importcert -alias isrgrootx2 -file /tmp/letsencryptauthorityx2.der && \
      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 atlassian ssl tool
      wget -O /home/${JIRA_USER}/SSLPoke.class https://confluence.atlassian.com/kb/files/779355358/779355357/1/1441897666313/SSLPoke.class && \
      # Set permissions
      chown -R $JIRA_USER:$JIRA_GROUP ${JIRA_HOME}    &&  \
      chown -R $JIRA_USER:$JIRA_GROUP ${JIRA_INSTALL} &&  \
      chown -R $JIRA_USER:$JIRA_GROUP ${JIRA_SCRIPTS} &&  \
      chown -R $JIRA_USER:$JIRA_GROUP /home/${JIRA_USER}
  
  # cleanUp
  RUN apk del ca-certificates gzip wget && \
  