From e3342a1abaff71823ebd952baf24a6143e711b99 Mon Sep 17 00:00:00 2001 From: Akira Ajisaka Date: Wed, 17 Oct 2018 10:11:44 +0900 Subject: [PATCH] HADOOP-15802. start-build-env.sh creates an invalid /etc/sudoers.d/hadoop-build-${USER_ID} file entry. Contributed by Jon Boone. --- start-build-env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start-build-env.sh b/start-build-env.sh index c5581ca621f..bf6b4113cd2 100755 --- a/start-build-env.sh +++ b/start-build-env.sh @@ -61,7 +61,7 @@ docker build -t "hadoop-build-${USER_ID}" - < "/etc/sudoers.d/hadoop-build-${USER_ID}" +RUN echo -e "${USER_NAME}\tALL=NOPASSWD: ALL" > "/etc/sudoers.d/hadoop-build-${USER_ID}" ENV HOME /home/${USER_NAME} UserSpecificDocker