This is an automated email from the ASF dual-hosted git repository.
rskraba pushed a commit to branch branch-1.11
in repository https://gitbox.apache.org/repos/asf/avro.git
The following commit(s) were added to refs/heads/branch-1.11 by this push:
new bfa9fd87c6 AVRO-4195: [docker] Do not fail on replacing user_id (#3550)
bfa9fd87c6 is described below
commit bfa9fd87c6faa8dc7b1b924d4bd02d6dfcac3d96
Author: Ryan Skraba <[email protected]>
AuthorDate: Sun Nov 16 16:34:27 2025 +0100
AVRO-4195: [docker] Do not fail on replacing user_id (#3550)
---
build.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build.sh b/build.sh
index 42ac418f33..7dddbbbc9e 100755
--- a/build.sh
+++ b/build.sh
@@ -306,7 +306,7 @@ do
{
cat share/docker/Dockerfile
echo "ENV HOME=/home/$USER_NAME"
- echo "RUN getent passwd $USER_ID && userdel \$(getent passwd $USER_ID
| cut -d: -f1)"
+ echo "RUN getent passwd $USER_ID && userdel \$(getent passwd $USER_ID
| cut -d: -f1) || true"
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"