From 4c3d4e6a5771141c165882f533e0db33dfd47caa Mon Sep 17 00:00:00 2001 From: slfan1989 <55643692+slfan1989@users.noreply.github.com> Date: Thu, 18 Jan 2024 19:12:12 +0800 Subject: [PATCH] HADOOP-19038. Improve create-release RUN script. (#6448) Contributed by Shilun Fan. Reviewed-by: Steve Loughran Reviewed-by: He Xiaoqiao Signed-off-by: Shilun Fan --- dev-support/bin/create-release | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dev-support/bin/create-release b/dev-support/bin/create-release index 693b41c4f3..274250f0b7 100755 --- a/dev-support/bin/create-release +++ b/dev-support/bin/create-release @@ -504,9 +504,9 @@ function dockermode echo "LABEL org.apache.hadoop.create-release=\"cr-${RANDOM}\"" # setup ownerships, etc - echo "RUN groupadd --non-unique -g ${group_id} ${user_name}" - echo "RUN useradd -g ${group_id} -u ${user_id} -m ${user_name}" - echo "RUN chown -R ${user_name} /home/${user_name}" + echo "RUN groupadd --non-unique -g ${group_id} ${user_name}; exit 0;" + echo "RUN useradd -g ${group_id} -u ${user_id} -m ${user_name}; exit 0;" + echo "RUN chown -R ${user_name} /home/${user_name}; exit 0;" echo "ENV HOME /home/${user_name}" echo "RUN mkdir -p /maven" echo "RUN chown -R ${user_name} /maven"