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

[jira] [Updated] (SPARK-25803) The -n option to docker-image-tool.sh causes other options to be ignored

     [ https://issues.apache.org/jira/browse/SPARK-25803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Larkin updated SPARK-25803:
---------------------------------
    Environment: 
* OS X 10.14
 * iTerm2
 * bash3
 * Docker 2.0.0.0-beta1-mac75 (27117)

(NB: I don't believe the above has a bearing; I imagine this issue is present also on linux and can confirm if needed.)

  was:
* OS X 10.14
* iTerm2
* bash3

(NB: I don't believe the above has a bearing; I imagine this issue is present also on linux and can confirm if needed.)


> The -n option to docker-image-tool.sh causes other options to be ignored
> ------------------------------------------------------------------------
>
>                 Key: SPARK-25803
>                 URL: https://issues.apache.org/jira/browse/SPARK-25803
>             Project: Spark
>          Issue Type: Bug
>          Components: Kubernetes
>    Affects Versions: 2.4.0
>         Environment: * OS X 10.14
>  * iTerm2
>  * bash3
>  * Docker 2.0.0.0-beta1-mac75 (27117)
> (NB: I don't believe the above has a bearing; I imagine this issue is present also on linux and can confirm if needed.)
>            Reporter: Steve Larkin
>            Priority: Minor
>
> To reproduce:-
> 1. Build spark
>  $ ./build/mvn -Pkubernetes -DskipTests clean package
> 2. Create a Dockerfile (a simple one, just for demonstration)
>  $ cat > hello-world.dockerfile <<EOF
>  > FROM hello-world
>  > EOF
> 3. Build container images with our Dockerfile
>  $ ./bin/docker-image-tool.sh -R hello-world.dockerfile -r docker.io/myrepo -t myversion build
> The result is that the -R option is honoured and the hello-world image is built for spark-r, as expected.
> 4. Build container images with our Dockerfile and the -n option
>  $ ./bin/docker-image-tool.sh -n -R hello-world.dockerfile -r docker.io/myrepo -t myversion build
> The result is that the -R option is ignored and the default container image for R is built
> docker-image-tool.sh, uses [getopts|http://pubs.opengroup.org/onlinepubs/9699919799/utilities/getopts.html] in which a colon, ':', signifies that an option takes an argument.  Since -n does not take an argument it should not have a colon.



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