summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorosgn422w <gervais-martial.ngueko@intl.att.com>2020-03-03 17:20:23 +0100
committerosgn422w <gervais-martial.ngueko@intl.att.com>2020-03-03 17:20:23 +0100
commit880785d795cfb62ddc15b6e6dd6375f37c8ff261 (patch)
tree5b88d470f50c94203460ccfa1316588f06875763
parentb98727a5bd512b47032aba8152e981b5b0b9b91f (diff)
ES run as non-root
ElasticSearch is started as non root user Issue-ID: CLAMP-668 Change-Id: I3f38cb20d84e5d760e99951a21260df8e24eed91 Signed-off-by: osgn422w <gervais-martial.ngueko@intl.att.com>
-rw-r--r--src/main/docker/elasticsearch/Dockerfile3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/docker/elasticsearch/Dockerfile b/src/main/docker/elasticsearch/Dockerfile
index 5e25e56..61c286f 100644
--- a/src/main/docker/elasticsearch/Dockerfile
+++ b/src/main/docker/elasticsearch/Dockerfile
@@ -37,4 +37,7 @@ COPY config/elasticsearch.yml /usr/share/elasticsearch/config/elasticsearch.yml
COPY securityconfig/roles.yml /usr/share/elasticsearch/plugins/opendistro_security/securityconfig/roles.yml
COPY securityconfig/internal_users.yml /usr/share/elasticsearch/plugins/opendistro_security/securityconfig/internal_users.yml
+RUN chown elasticsearch:elasticsearch /usr/share/supervisor
+USER elasticsearch
+ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]