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:
parent
04e447cfa7
commit
4c3d4e6a57
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user