You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by cw...@apache.org on 2021/05/04 10:01:55 UTC
[druid] branch 0.21.1 created (now be682b2)
This is an automated email from the ASF dual-hosted git repository.
cwylie pushed a change to branch 0.21.1
in repository https://gitbox.apache.org/repos/asf/druid.git.
at be682b2 fix docker volume permissions (#11167)
This branch includes the following new commits:
new be682b2 fix docker volume permissions (#11167)
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[druid] 01/01: fix docker volume permissions (#11167)
Posted by cw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
cwylie pushed a commit to branch 0.21.1
in repository https://gitbox.apache.org/repos/asf/druid.git
commit be682b2abf30287a8456627a20265222cbfca730
Author: frank chen <fr...@outlook.com>
AuthorDate: Fri Apr 30 23:51:53 2021 +0800
fix docker volume permissions (#11167)
Docker volume directory was accidentally removed due to reordering of statements.
This causes ownership and permissions on the volume directory to be reset, preventing startup.
fixes #11166
Signed-off-by: frank chen <fr...@outlook.com>
---
distribution/docker/Dockerfile | 8 ++++----
distribution/docker/Dockerfile.java11 | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/distribution/docker/Dockerfile b/distribution/docker/Dockerfile
index f036cc0..1d09594 100644
--- a/distribution/docker/Dockerfile
+++ b/distribution/docker/Dockerfile
@@ -46,13 +46,13 @@ COPY --from=busybox /bin/busybox /busybox/busybox
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
+ && adduser -S -u 1000 -D -H -h /opt/druid -s /bin/sh -g '' -G druid druid
COPY --chown=druid:druid --from=builder /opt /opt
COPY distribution/docker/druid.sh /druid.sh
+RUN mkdir /opt/druid/var \
+ && chown druid:druid /opt/druid/var \
+ && chmod 775 /opt/druid/var
USER druid
VOLUME /opt/druid/var
diff --git a/distribution/docker/Dockerfile.java11 b/distribution/docker/Dockerfile.java11
index 8a5eb98..32eb958 100644
--- a/distribution/docker/Dockerfile.java11
+++ b/distribution/docker/Dockerfile.java11
@@ -46,13 +46,13 @@ COPY --from=busybox /bin/busybox /busybox/busybox
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
+ && adduser -S -u 1000 -D -H -h /opt/druid -s /bin/sh -g '' -G druid druid
COPY --chown=druid:druid --from=builder /opt /opt
COPY distribution/docker/druid.sh /druid.sh
+RUN mkdir /opt/druid/var \
+ && chown druid:druid /opt/druid/var \
+ && 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