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