[ https://issues.apache.org/jira/browse/SPARK-25803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marcelo Vanzin resolved SPARK-25803. ------------------------------------ Resolution: Fixed Fix Version/s: 3.0.0 2.4.1 > 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 > Assignee: Steve Larkin > Priority: Minor > Fix For: 2.4.1, 3.0.0 > > > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org