anchor.diff:  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
   
   ENV TERM="xterm" \
       TIMEZONE="Europe/Berlin" \
  
positive.code: 
  EXPOSE 8080
  
  ENTRYPOINT ["/sbin/tini","--","/usr/local/share/atlassian/entrypoint.sh"]
  
  CMD ["jira"]
  
negative.code:     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
  
  # change ownership of bin/home files
  RUN chown -R ${JIRA_USER}:${JIRA_GROUP} ${JIRA_HOME} ${JIRA_INSTALL} ${JIRA_SCRIPTS} /home/${JIRA_USER}
  
  # 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 && \
      tar -C /usr/local/bin -xzvf /tmp/dockerize.tar.gz
  
  # cleanUp
  RUN apk del ca-certificates gzip wget && \
      rm -rf /var/cache/apk/* && \
      rm -rf /tmp/* &&  \
      rm -rf /var/log/*
  
  # --
  # define container execution behaviour
  # --
  
  USER ${JIRA_USER:-jira}
  
  VOLUME ["${JIRA_HOME}"]
  
  