HADOOP-19038. Improve create-release RUN script. (#6448) Contributed by Shilun Fan.

Reviewed-by: Steve Loughran <stevel@cloudera.com>
Reviewed-by: He Xiaoqiao <hexiaoqiao@apache.org>
Signed-off-by: Shilun Fan <slfan1989@apache.org>
This commit is contained in:
slfan1989 2024-01-18 19:12:12 +08:00 committed by GitHub
parent 04e447cfa7
commit 4c3d4e6a57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"