anchor.diff:  LABEL org.label-schema.schema-version="1.0" \
     org.label-schema.vendor="Elastic" \
     org.label-schema.name="elasticsearch" \
  -  org.label-schema.version="6.6.2" \
  +  org.label-schema.version="6.7.0" \
     org.label-schema.url="https://www.elastic.co/products/elasticsearch" \
     org.label-schema.vcs-url="https://github.com/elastic/elasticsearch" \
     license="Elastic License"
  
positive.code: FROM centos:7
  
  ENV ELASTIC_CONTAINER true
  ENV JAVA_HOME /opt/jdk-11.0.1
  
  COPY --from=builder /opt/jdk-11.0.1 /opt/jdk-11.0.1
  
  RUN yum update -y && \
      yum install -y nc unzip wget which && \
  
negative.code: 
  WORKDIR /usr/share/elasticsearch
  
  RUN cd /opt && curl --retry 8 -s -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.7.0.tar.gz && cd -
  
  RUN tar zxf /opt/elasticsearch-6.7.0.tar.gz --strip-components=1
  RUN grep ES_DISTRIBUTION_TYPE=tar /usr/share/elasticsearch/bin/elasticsearch-env \
      && sed -ie 's/ES_DISTRIBUTION_TYPE=tar/ES_DISTRIBUTION_TYPE=docker/' /usr/share/elasticsearch/bin/elasticsearch-env
  RUN mkdir -p config data logs
  RUN chmod 0775 config data logs
  COPY config/elasticsearch.yml config/log4j2.properties config/
  