You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Rob Vesse (JIRA)" <ji...@apache.org> on 2019/01/22 10:57:00 UTC

[jira] [Commented] (SPARK-26685) Building Spark Images with latest Docker does not honour spark_uid build argument

    [ https://issues.apache.org/jira/browse/SPARK-26685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16748605#comment-16748605 ] 

Rob Vesse commented on SPARK-26685:
-----------------------------------

Opened a PR to fix this

> Building Spark Images with latest Docker does not honour spark_uid build argument
> ---------------------------------------------------------------------------------
>
>                 Key: SPARK-26685
>                 URL: https://issues.apache.org/jira/browse/SPARK-26685
>             Project: Spark
>          Issue Type: Improvement
>          Components: Kubernetes
>    Affects Versions: 2.4.0
>            Reporter: Rob Vesse
>            Priority: Major
>
> Latest Docker releases are stricter in their interpretation of the scope of build arguments meaning the location of the {{ARG spark_uid}} declaration puts it out of scope by the time the variable is consumed resulting in the Python and R images still running as {{root}} regardless of what the user may have specified as the desired UID.
> e.g. Images built with {{-u 456}} provided to {{bin/docker-image-tool.sh}}
> {noformat}
> > docker run -it --entrypoint /bin/bash rvesse/spark-py:uid456
> bash-4.4# whoami
> root
> bash-4.4# id -u
> 0
> bash-4.4# exit
> > docker run -it --entrypoint /bin/bash rvesse/spark:uid456
> bash-4.4$ id -u
> 456
> bash-4.4$ exit
> {noformat}
> Note that for the Python image the build argument was out of scope and ignored.  For the base image the {{ARG}} declaration is in an in-scope location and so is honoured correctly.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org