You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by fr...@apache.org on 2021/04/27 10:50:36 UTC

[druid] 01/01: Fix permission problem when creating dirs

This is an automated email from the ASF dual-hosted git repository.

frankchen pushed a commit to branch FrankChen021-docker
in repository https://gitbox.apache.org/repos/asf/druid.git

commit c7ec1b0fbfda7d81e5800f8dbcab868f11deb501
Author: frank chen <fr...@outlook.com>
AuthorDate: Tue Apr 27 18:50:05 2021 +0800

    Fix permission problem when creating dirs
---
 distribution/docker/Dockerfile | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/distribution/docker/Dockerfile b/distribution/docker/Dockerfile
index f036cc0..44f07dc 100644
--- a/distribution/docker/Dockerfile
+++ b/distribution/docker/Dockerfile
@@ -47,12 +47,13 @@ RUN ["/busybox/busybox", "--install", "/bin"]
 
 RUN addgroup -S -g 1000 druid \
  && adduser -S -u 1000 -D -H -h /opt/druid -s /bin/sh -g '' -G druid druid \
- && mkdir -p /opt/druid/var \
- && chown -R druid:druid /opt \
- && chmod 775 /opt/druid/var
+ && mkdir -p /opt
 
 COPY --chown=druid:druid --from=builder /opt /opt
 COPY distribution/docker/druid.sh /druid.sh
+RUN mkdir -p /opt/druid/var \
+ && chown -R druid:druid /opt \
+ && chmod 775 /opt/druid/var
 
 USER druid
 VOLUME /opt/druid/var

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org