This is an automated email from the ASF dual-hosted git repository. stigahuang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/impala.git
commit 8542924fcaca1aa1d451363d6ac7cbf258a22631 Author: Bikramjeet Vig <[email protected]> AuthorDate: Tue Dec 1 18:54:36 2020 -0800 IMPALA-10373: Run impala docker containers with uid/gid 1000 The convention in in linux is to that anything below 1000 is reserved for system accounts, services, and other special accounts, and regular user UIDs and GIDs stay above 1000. This will ensure that the 'impala' user created that runs the impala executable inside the docker container gets assigned 1000 uid and gid. Testing: Manually tested by running the docker container and checking the user. Change-Id: I51b846ca5fb2c55ac1707b9581cee18447467b41 Reviewed-on: http://gerrit.cloudera.org:8080/16807 Reviewed-by: Andrew Sherman <[email protected]> Tested-by: Impala Public Jenkins <[email protected]> --- docker/impala_base/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/impala_base/Dockerfile b/docker/impala_base/Dockerfile index 614a2ed..74db54b 100644 --- a/docker/impala_base/Dockerfile +++ b/docker/impala_base/Dockerfile @@ -28,7 +28,7 @@ RUN apt-get update && \ # Use a non-privileged impala user to run the daemons in the container. # That user should own everything in the /opt/impala subdirectory. -RUN groupadd -r impala && useradd --no-log-init -r -g impala impala && \ +RUN groupadd -r impala -g 1000 && useradd --no-log-init -r -u 1000 -g 1000 impala && \ mkdir -p /opt/impala && chown impala /opt/impala && \ chmod ugo+w /etc/passwd USER impala
