You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by cn...@apache.org on 2025/07/08 23:26:48 UTC
(hadoop) branch trunk updated: HADOOP-19606. Delete the UID in the dev container that is the same as the host user
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 <ch...@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 <sl...@apache.org>
Signed-off-by: Chris Nauroth <cn...@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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org