HADOOP-16240. start-build-env.sh can consume all disk space during image creation.
Contributed by Craig Condit.
This commit is contained in:
parent
8c1bba375b
commit
d8239f3bc7
@ -60,6 +60,7 @@ fi
|
|||||||
|
|
||||||
docker build -t "hadoop-build-${USER_ID}" - <<UserSpecificDocker
|
docker build -t "hadoop-build-${USER_ID}" - <<UserSpecificDocker
|
||||||
FROM hadoop-build
|
FROM hadoop-build
|
||||||
|
RUN rm -f /var/log/faillog /var/log/lastlog
|
||||||
RUN groupadd --non-unique -g ${GROUP_ID} ${USER_NAME}
|
RUN groupadd --non-unique -g ${GROUP_ID} ${USER_NAME}
|
||||||
RUN useradd -g ${GROUP_ID} -u ${USER_ID} -k /root -m ${USER_NAME}
|
RUN useradd -g ${GROUP_ID} -u ${USER_ID} -k /root -m ${USER_NAME}
|
||||||
RUN echo "${USER_NAME} ALL=NOPASSWD: ALL" > "/etc/sudoers.d/hadoop-build-${USER_ID}"
|
RUN echo "${USER_NAME} ALL=NOPASSWD: ALL" > "/etc/sudoers.d/hadoop-build-${USER_ID}"
|
||||||
|
Loading…
Reference in New Issue
Block a user