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

cnauroth pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new b023f256279 HADOOP-19606. Delete the UID in the dev container that is 
the same as the host user
b023f256279 is described below

commit b023f256279774ae6b02a1b697395d83293605e1
Author: Cheng Pan <cheng...@apache.org>
AuthorDate: Tue Jul 8 23:25:01 2025 +0000

    HADOOP-19606. Delete the UID in the dev container that is the same as the 
host user
    
    Closes #7781
    
    Signed-off-by: Shilun Fan <slfan1...@apache.org>
    Signed-off-by: Chris Nauroth <cnaur...@apache.org>
---
 start-build-env.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/start-build-env.sh b/start-build-env.sh
index cead1eb8cdb..3c2a74b23b0 100755
--- a/start-build-env.sh
+++ b/start-build-env.sh
@@ -89,6 +89,7 @@ DOCKER_HOME_DIR=${DOCKER_HOME_DIR:-/home/${USER_NAME}}
 docker build -t "hadoop-build${OS_PLATFORM_SUFFIX}-${USER_ID}" - 
<<UserSpecificDocker
 FROM hadoop-build
 RUN rm -f /var/log/faillog /var/log/lastlog
+RUN userdel -r \$(getent passwd ${USER_ID} | cut -d: -f1) 2>/dev/null || :
 RUN groupadd --non-unique -g ${GROUP_ID} ${USER_NAME}
 RUN useradd -g ${GROUP_ID} -u ${USER_ID} -k /root -m ${USER_NAME} -d 
"${DOCKER_HOME_DIR}"
 RUN echo "${USER_NAME} ALL=NOPASSWD: ALL" > 
"/etc/sudoers.d/hadoop-build-${USER_ID}"


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org

Reply via email to