pan3793 commented on PR #11: URL: https://github.com/apache/spark-docker/pull/11#issuecomment-1279775360
I'm a little worried about this change, previously, we can achieve the dynamic login user ability by the following patch, but this PR makes the login user be static to "spark" https://github.com/apache/spark-docker/blob/3037f75a88ca7ea57746c7d1bf49c125a828f56e/3.3.0/scala2.12-java11-ubuntu/entrypoint.sh#L27-L34 ```patch # If there is no passwd entry for the container UID, attempt to create one if [ -z "$uidentry" ] ; then if [ -w /etc/passwd ] ; then - echo "$myuid:x:$myuid:$mygid:${SPARK_USER_NAME:-anonymous uid}:$SPARK_HOME:/bin/false" >> /etc/passwd + echo "${SPARK_USER_NAME:-$myuid}:x:$myuid:$mygid:${SPARK_USER_NAME:-anonymous uid}:$SPARK_HOME:/bin/false" >> /etc/passwd else echo "Container ENTRYPOINT failed to add passwd entry for anonymous UID" fi fi ``` -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
