radanalyticsio / openshift-spark

72 stars 83 forks source link

Allow a modify-spark directory for image completion #88

Closed tmckayus closed 5 years ago

tmckayus commented 5 years ago

This change supports an optional modify-spark directory that can be put in the build input directory for image completion. If the modify-spark directory is there, the image completion script will run rsync to copy it's contents into the spark install directory. This mechanism allows a user to modify a spark distro by laying out a parallel directory structure.

tmckayus commented 5 years ago

that is a good question ...

tmckayus commented 5 years ago

It turns out that because we are running the build as user 185 and using tar and rsync as a non-root user, all of the files created during the image completion process (ie spark install and any optional "modify-spark" content) end up with ownership of 185:root anyway because the non-root user can't change the uid/gid.