kumaab commented on code in PR #6:
URL: https://github.com/apache/ranger-tools/pull/6#discussion_r2655894872


##########
docker/Dockerfile:
##########
@@ -47,23 +47,15 @@ ENV RANGER_SCRIPTS=/home/ranger/scripts
 ENV RANGER_HOME=/opt/ranger
 ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
 
-# setup groups, users, directories
-RUN groupadd ranger \
-    && for u in ranger rangeradmin rangerusersync rangertagsync rangerkms; do \
-      useradd -g ranger -ms /bin/bash $u; \
-    done
-
-RUN groupadd hadoop \
-    && for u in hdfs yarn hive hbase kafka ozone; do \
-      useradd -g hadoop -ms /bin/bash $u; \
-    done
-
-RUN groupadd knox \
-    && useradd -g knox -ms /bin/bash knox
-
 # setup directories

Review Comment:
   Please see if the below helps resolve the build issue.
   
   ```
   # create directories and setup perms
   RUN mkdir -p /home/ranger/dist /home/ranger/scripts /opt/ranger && \
       chmod +rx /home/ranger /home/ranger/dist /home/ranger/scripts
   
   # setup groups and users
   COPY create_users_and_groups.sh ${RANGER_SCRIPTS}
   RUN chmod +x /home/ranger/scripts/create_users_and_groups.sh && \
       ./home/ranger/scripts/create_users_and_groups.sh
   
   # change ownerships
   RUN chown -R ranger:ranger /home/ranger /opt/ranger
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to