From dfee28c928e7a199d4946a83822416f302f1283e Mon Sep 17 00:00:00 2001 From: Pritam Das Date: Sun, 15 Dec 2024 09:30:23 +0600 Subject: [PATCH] oc ready (#82) Signed-off-by: pritamdas99 Signed-off-by: Tamal Saha Co-authored-by: Tamal Saha --- elasticsearch-init/Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/elasticsearch-init/Dockerfile b/elasticsearch-init/Dockerfile index 71a559e..44a6cc5 100644 --- a/elasticsearch-init/Dockerfile +++ b/elasticsearch-init/Dockerfile @@ -21,6 +21,12 @@ COPY --from=yq /yq /usr/bin/yq COPY --from=elasticsearch /usr/share/opensearch/config /elasticsearch/default-config COPY --from=elasticsearch /usr/share/opensearch/plugins/opensearch-security/securityconfig /elasticsearch/default-securityconfig -RUN chmod -c 755 /usr/local/bin/config-merger.sh +RUN chmod -c 777 /usr/local/bin/config-merger.sh + +RUN chgrp -R 0 /elasticsearch/default-config \ + && chmod -R g=u /elasticsearch/default-config + +RUN chgrp -R 0 /elasticsearch/default-securityconfig \ + && chmod -R g=u /elasticsearch/default-securityconfig ENTRYPOINT ["/bin/bash","/usr/local/bin/config-merger.sh"]