Yikun opened a new pull request, #43:
URL: https://github.com/apache/spark-docker/pull/43

   ### What changes were proposed in this pull request?
   Switch spark user only when run driver and executor
   
   ### Why are the changes needed?
   Address doi comments: question 7 [1]
   
   [1] 
https://github.com/docker-library/official-images/pull/13089#issuecomment-1533540388
 
   [2] 
https://github.com/docker-library/official-images/pull/13089#issuecomment-1561793792
   
   
   ### Does this PR introduce _any_ user-facing change?
   Yes
   
   ### How was this patch tested?
   1. test mannuly
   ```
   cd ~/spark-docker/3.4.0/scala2.12-java11-ubuntu
   $ docker build . -t spark-test
   
   $ docker run -ti spark-test bash
   spark@afa78af05cf8:/opt/spark/work-dir$
   
   $ docker run  --user root  -ti spark-test bash
   root@095e0d7651fd:/opt/spark/work-dir#
   ```
   2. ci passed


-- 
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]

Reply via email to