Steve Larkin created SPARK-25803: ------------------------------------ Summary: 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
(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 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