cuddly-jelly-27016
03/05/2025, 11:59 PMImageSpec.
## What changes were proposed in this pull request?
Remove image from the string altogether and let docker decide for us. Users who run docker buildx install will automatically alias this command for them, and therefore the flyte cli.
## How was this patch tested?
I tested this patch on a system with and without buildx to verify the command's functionality persisted.
### Setup process
1. Install Docker
2. (optional) Install the buildx plugin and configure a remote driver
3. Use an existing imagespec workflow to test:
from flytekit import ImageSpec
sklearn_image_spec = ImageSpec(
packages=["scikit-learn", "tensorflow==2.5.0"],
apt_packages=["curl", "wget"],
registry="ghcr.io/flyteorg",
)
### Screenshots
## Check all the applicable boxes
• I updated the documentation accordingly.
• All new and existing tests passed.
• All commits are signed-off.
## Related PRs
## Docs link
### Summary by Bito
This PR implements Docker Buildx support by updating the CLI to use remote image building capabilities. It removes the explicit 'image' flag from the default builder, allowing Docker to automatically select the appropriate builder when buildx is available. These changes improve build performance in environments with slower networks and ensure consistent behavior across different systems.
Unit tests added: False
Estimated effort to review (1-5, lower is better): 1
flyteorg/flytekitcuddly-jelly-27016
03/14/2025, 7:52 PM