Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-49117][K8S] Fix docker-image-tool.sh to be up-to-date #47618

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions bin/docker-image-tool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -261,18 +261,18 @@ Examples:
$0 -m -t testing build

- Build PySpark docker image
$0 -r docker.io/myrepo -t v3.4.0 -p kubernetes/dockerfiles/spark/bindings/python/Dockerfile build
$0 -r docker.io/myrepo -t v4.0.0 -p kubernetes/dockerfiles/spark/bindings/python/Dockerfile build

- Build and push image with tag "v3.4.0" to docker.io/myrepo
$0 -r docker.io/myrepo -t v3.4.0 build
$0 -r docker.io/myrepo -t v3.4.0 push
- Build and push image with tag "v4.0.0" to docker.io/myrepo
$0 -r docker.io/myrepo -t v4.0.0 build
$0 -r docker.io/myrepo -t v4.0.0 push

- Build and push Java11-based image with tag "v3.4.0" to docker.io/myrepo
$0 -r docker.io/myrepo -t v3.4.0 -b java_image_tag=11-jre build
$0 -r docker.io/myrepo -t v3.4.0 push
- Build and push Java17-based image with tag "v4.0.0" to docker.io/myrepo
$0 -r docker.io/myrepo -t v4.0.0 -b java_image_tag=17 build
$0 -r docker.io/myrepo -t v4.0.0 push

- Build and push image for multiple archs to docker.io/myrepo
$0 -r docker.io/myrepo -t v3.4.0 -X build
$0 -r docker.io/myrepo -t v4.0.0 -X build
# Note: buildx, which does cross building, needs to do the push during build
# So there is no separate push step with -X

Expand Down