1 # https://github.com/elastic/elasticsearch-docker
2 FROM docker.elastic.co/elasticsearch/elasticsearch-oss:6.6.2
4 COPY config/sg/ config/sg/
7 #RUN chmod +x bin/init_sg.sh
8 COPY my-entrypoint.sh /usr/local/bin/my-entrypoint.sh
9 RUN chmod a+x /usr/local/bin/my-entrypoint.sh
11 RUN elasticsearch-plugin install --batch com.floragunn:search-guard-6:6.6.2-25.1 \
12 && chmod +x plugins/search-guard-6/tools/*.sh \
13 && chown -R elasticsearch config/sg/ \
14 && chmod -R go= config/sg/
16 # Add your elasticsearch plugins setup here
17 # Example: RUN elasticsearch-plugin install analysis-icu
19 # This custom entrypoint script is used instead of
20 # the original's /usr/local/bin/docker-entrypoint.sh
21 ENTRYPOINT ["bash","-c","my-entrypoint.sh"]