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

vavrtom pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-broker-j.git


The following commit(s) were added to refs/heads/main by this push:
     new ba1df60bcc QPID-8712: [Broker-J] Operation not permitted when building 
docker image (#327)
ba1df60bcc is described below

commit ba1df60bcc36fd174b33ed28cf306b22320f4fb5
Author: Daniil Kirilyuk <[email protected]>
AuthorDate: Fri Sep 5 12:01:14 2025 +0200

    QPID-8712: [Broker-J] Operation not permitted when building docker image 
(#327)
---
 qpid-docker/Containerfile | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/qpid-docker/Containerfile b/qpid-docker/Containerfile
index a402cb2e32..6cc3e5cdc8 100644
--- a/qpid-docker/Containerfile
+++ b/qpid-docker/Containerfile
@@ -56,12 +56,11 @@ ENV QPID_ADMIN_USER="admin"
 ENV QPID_ADMIN_PASSWORD="admin"
 
 # Create work folder and subfolders
-RUN mkdir -p /qpid-broker-j/etc && \
-    mkdir -p /qpid-broker-j/work && \
-    mkdir -p /qpid-broker-j/work-init && \
-    mkdir -p /qpid-broker-j/work-override && \
-    chmod -R 770 /qpid-broker-j && \
-    chown -R 1001:root /qpid-broker-j
+RUN install -d -o 1001 -g 0 -m 0770 /qpid-broker-j && \
+    install -d -o 1001 -g 0 -m 0770 /qpid-broker-j/etc && \
+    install -d -o 1001 -g 0 -m 0770 /qpid-broker-j/work && \
+    install -d -o 1001 -g 0 -m 0770 /qpid-broker-j/work-init && \
+    install -d -o 1001 -g 0 -m 0770 /qpid-broker-j/work-override
 
 # Declare volume
 VOLUME ["/qpid-broker-j/work"]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to