Skip to content
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