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

mgrigorov pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/main by this push:
     new a5b6f47b2a [AVRO-4194]: [build][docker] Ensure docker group exists 
(#3539)
a5b6f47b2a is described below

commit a5b6f47b2a169f09024f8cf06c460caed8770132
Author: Ryan Skraba <[email protected]>
AuthorDate: Tue Nov 4 09:58:38 2025 +0100

    [AVRO-4194]: [build][docker] Ensure docker group exists (#3539)
---
 build.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build.sh b/build.sh
index 0d16aab0a7..67cbd23c39 100755
--- a/build.sh
+++ b/build.sh
@@ -304,8 +304,8 @@ do
       {
         cat share/docker/Dockerfile
         echo "ENV HOME=/home/$USER_NAME"
-        echo "RUN getent group $GROUP_ID || groupadd -g $GROUP_ID $USER_NAME"
         echo "RUN getent passwd $USER_ID && userdel \$(getent passwd $USER_ID 
| cut -d: -f1)"
+        echo "RUN getent group $GROUP_ID || groupadd -g $GROUP_ID $USER_NAME"
         echo "RUN useradd -N -g $GROUP_ID -u $USER_ID -k /root -m $USER_NAME"
         echo "RUN mkdir -p /home/$USER_NAME/.m2/repository"
         echo "RUN chown -R --reference=/home/$USER_NAME /home/$USER_NAME/.m2/"

Reply via email to