anchor.diff: -FROM openjdk:8u171-jre-alpine3.8
  +FROM openjdk:8u181-jdk-slim-stretch
   
   LABEL maintainer="mritd <mritd1234@gmail.com>"
   
   ARG TZ="Asia/Shanghai"
   
   ENV TZ ${TZ}
  -ENV ACTIVEMQ_VERSION 5.15.4
  +ENV ACTIVEMQ_VERSION 5.15.7
   ENV ACTIVEMQ_MQTT     1883
   ENV ACTIVEMQ_AMQP     5672
   ENV ACTIVEMQ_UI       8161
  
positive.code: ENV ACTIVEMQ_SHA512_VAL 26d8154fcfe17ab90508b3b9d46b40815404fa3886cfdc4eae4b06086332203bd2455475b9309ccabd76d0c9b65f523f9d3911d315c17bf4b48bd22395ea8ead
  
  
  RUN apk upgrade \
      && apk add bash tzdata curl \
      && curl ${ACTIVEMQ_DOWNLOAD_URL} -o ${ACTIVEMQ}-bin.tar.gz \
      && if [ "${ACTIVEMQ_SHA512_VAL}" != "$(sha512sum ${ACTIVEMQ}-bin.tar.gz | awk '{print($1)}')" ]; then \
           echo "sha512 values doesn't match! exiting." && exit 1; \
  
negative.code:     && mkdir /opt \
      && tar xzf ${ACTIVEMQ}-bin.tar.gz -C /opt \
      && ln -s /opt/${ACTIVEMQ} ${ACTIVEMQ_HOME} \
      && addgroup activemq \
      && adduser activemq activemq --home ${ACTIVEMQ_HOME} --disabled-login \
      && chown -R activemq:activemq /opt/${ACTIVEMQ} \
      && chown -h activemq:activemq ${ACTIVEMQ_HOME} \
      && ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime \
      && echo ${TZ} > /etc/timezone \
      && apt clean
  
  USER activemq
  
  