anchor.diff:  ADD https://artifacts.elastic.co/GPG-KEY-elasticsearch /usr/share/keyrings/elasticsearch-keyring.asc
   RUN gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg /usr/share/keyrings/elasticsearch-keyring.asc && \
       echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/${es_ver}.x/apt stable main" | tee /etc/apt/sources.list.d/elastic-${es_ver}.x.list
  -RUN apt-get update && \
  +RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
  +    --mount=type=cache,target=/var/lib/apt,sharing=locked \
  +    apt-get update && \
       apt-get install --no-install-recommends -y \
           elasticsearch \
           kibana \
       && \
  -    apt-get clean && \
  -    rm -rf /var/lib/apt/lists/* /tmp/*
  +    rm -rf /tmp/*
   RUN echo "ES_JAVA_HOME=\"${ES_JAVA_HOME}\"" >> /etc/default/elasticsearch
   
   # Install RabbitMQ
  
positive.code: 
  # Kibana init script and config files
  COPY --chown=root:kibana kibana/kibana.yml /etc/kibana/kibana.yml
  COPY kibana/kibana.init /etc/init.d/kibana
  RUN chmod +x /etc/init.d/kibana
  
  # Initialize Elasticsearch and Kibana
  SHELL [ "/bin/bash", "-x", "-c" ]
  
negative.code:     gpg --dearmor -o /usr/share/keyrings/rabbitmq_rabbitmq-server.gpg /usr/share/keyrings/rabbitmq_rabbitmq-server.asc && \
      gpg --dearmor -o /usr/share/keyrings/erlang_solutions.gpg /usr/share/keyrings/erlang_solutions.asc && \
      echo "deb [signed-by=/usr/share/keyrings/rabbitmq_rabbitmq-server.gpg] https://packagecloud.io/rabbitmq/rabbitmq-server/ubuntu/ $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/rabbitmq_rabbitmq-server.list && \
      echo "deb [signed-by=/usr/share/keyrings/erlang_solutions.gpg] https://packages.erlang-solutions.com/ubuntu $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) contrib" | tee /etc/apt/sources.list.d/erlang-solutions.list
  RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
      --mount=type=cache,target=/var/lib/apt,sharing=locked \
      apt-get update && \
      apt-get install -y \
          rabbitmq-server \
      && \
      rm -rf /tmp/*
  
  # Install Python modules for Logstash stand-in
  RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
      --mount=type=cache,target=/var/lib/apt,sharing=locked \
      apt-get update && \
      apt-get install --no-install-recommends -y \
          python3-qpid-proton \
          python3-elasticsearch \
      && \
      rm -rf /tmp/*
  
  # Install some utils
  RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
      --mount=type=cache,target=/var/lib/apt,sharing=locked \
      apt-get update && \
      apt-get install -y \
          procps \
          nano \
  