From 6c77cd270acfc5fe3ec9fa73835b7df6fa3b15ac 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 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/elasticsearch-init/Dockerfile b/elasticsearch-init/Dockerfile index f6cf23a..8e6a8f4 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/config/opensearch-security /elasticsearch/default-securityconfig -RUN chmod -c 755 /usr/local/bin/config-merger.sh +RUN chmod -c 777 /usr/local/bin/config-merger.sh -ENTRYPOINT ["/bin/bash","/usr/local/bin/config-merger.sh"] \ No newline at end of file +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"]