Github user rvesse commented on a diff in the pull request:

    https://github.com/apache/spark/pull/23053#discussion_r234968048
  
    --- Diff: bin/docker-image-tool.sh ---
    @@ -41,6 +41,18 @@ function image_ref {
       echo "$image"
     }
     
    +function docker_push {
    +  local image_name="$1"
    +  if [ ! -z $(docker images -q "$(image_ref ${image_name})") ]; then
    +    docker push "$(image_ref ${image_name})"
    +    if [ $? -ne 0 ]; then
    +      error "Failed to push $image_name Docker image."
    +    fi
    +  else
    +    echo "$(image_ref ${image_name}) image not found. Skipping push for 
this image."
    --- End diff --
    
    Currently the script could incorrectly go down this path if an image build 
fails because it doesn't exit in that case


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to