summaryrefslogtreecommitdiffstats
path: root/src/main/docker/elasticsearch/Dockerfile
diff options
context:
space:
mode:
authorosgn422w <gervais-martial.ngueko@intl.att.com>2019-07-17 16:17:13 +0200
committerosgn422w <gervais-martial.ngueko@intl.att.com>2019-07-17 16:24:58 +0200
commit0ce11eaeca48930d0203545a5e4206349a11f01b (patch)
treebbe5b1c792043fd2dafded1bcdb12449752bd995 /src/main/docker/elasticsearch/Dockerfile
parent493c3839fb6807512218165fd8a3a6efe1933fb9 (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/Dockerfile20
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 00000000..2c932c8e
--- /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