diff options
author | osgn422w <gervais-martial.ngueko@intl.att.com> | 2019-07-17 16:17:13 +0200 |
---|---|---|
committer | osgn422w <gervais-martial.ngueko@intl.att.com> | 2019-07-17 16:24:58 +0200 |
commit | 0ce11eaeca48930d0203545a5e4206349a11f01b (patch) | |
tree | bbe5b1c792043fd2dafded1bcdb12449752bd995 /src/main/docker/elasticsearch/Dockerfile | |
parent | 493c3839fb6807512218165fd8a3a6efe1933fb9 (diff) |
add searchguard
add authentication to elk with searchguard
Issue-ID: CLAMP-419
Change-Id: I66bca485750e3377db10f6f43efb7f741a42c17d
Signed-off-by: osgn422w <gervais-martial.ngueko@intl.att.com>
Diffstat (limited to 'src/main/docker/elasticsearch/Dockerfile')
-rw-r--r-- | src/main/docker/elasticsearch/Dockerfile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/main/docker/elasticsearch/Dockerfile b/src/main/docker/elasticsearch/Dockerfile new file mode 100644 index 000000000..2c932c8e9 --- /dev/null +++ b/src/main/docker/elasticsearch/Dockerfile @@ -0,0 +1,20 @@ +# https://github.com/elastic/elasticsearch-docker +FROM docker.elastic.co/elasticsearch/elasticsearch:6.6.2 + +COPY config/sg/ config/sg/ +COPY config/ config/ +COPY bin/ bin/ +#RUN chmod +x bin/init_sg.sh +COPY my-entrypoint.sh /usr/local/bin/my-entrypoint.sh +# Search Guard plugin +RUN elasticsearch-plugin install --batch com.floragunn:search-guard-6:6.6.2-25.1 \ + && chmod +x plugins/search-guard-6/tools/*.sh \ + && chown -R elasticsearch config/sg/ \ + && chmod -R go= config/sg/ + +# Add your elasticsearch plugins setup here +# Example: RUN elasticsearch-plugin install analysis-icu + +# This custom entrypoint script is used instead of +# the original's /usr/local/bin/docker-entrypoint.sh +ENTRYPOINT ["bash","-c","my-entrypoint.sh"]
\ No newline at end of file |