FROM elasticsearch:6.4.3
ENV ES_TMPDIR "/tmp"
ENV ES_VERSION 6.4.3
ENV SG_VERSION "25.5"
COPY search-guard-6-6.4.3-25.5.zip /usr/share/elasticsearch/
RUN echo "clear"
&& cd /usr/share/elasticsearch
&& rm modules/x-pack-ml -rf
&& rm modules/x-pack-security -rf
#RUN ls
RUN echo "===> Installing search-guard..."
&& cd /usr/share/elasticsearch
&& bin/elasticsearch-plugin install -b file:///usr/share/elasticsearch/search-guard-6-6.4.3-25.5.zip