cuddly-jelly-27016
03/24/2025, 9:23 AMflytekit_hash = "21652e067d474724877cb6440660e4a4271564f9"
flytekit = f"git+https://github.com/arbaobao/flytekit.git@{flytekit_hash}"
image = ImageSpec(
packages=[flytekit, "pandas", "pyarrow"],
apt_packages=["git"],
registry="localhost:30000",
builder_config={"uv_image": "arbaobao/flytekit:uv", "micromamba_image": "arbaobao/flyte-test-images:micromamba-amd64"}
)
if we don't specify the image, the default images are ghcr.io/astral-sh/uv:0.5.1 and mambaorg/micromamba:2.0.3-debian12-slim.
### Setup process
Run a task using the image_spec above, and you can find out that the uv_image and micromamba_image are both using the image you specified.
### Screenshots
[Screenshot 2025-03-24 at 5 21 55 PM](https://private-user-images.githubusercontent.com/26268253/426008409-7e56d8cf-3571-4762-b244-1c4e07345392.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDU0Mjc5NTMsIm5iZiI6MTc0NTQyNzY1MywicGF0aCI6Ii8yNjI2ODI1My80MjYwMDg0MDktN2U1NmQ4Y2YtMzU3MS00NzYyLWIyNDQtMWM0ZTA3MzQ1MzkyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA0MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNDIzVDE3MDA1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI5Y2MzY2ZiZmU1M2IxODlhY2UwMTQ1NjJmN2YxZjZlM2Q5NjlhYWZlNWE2NTZiNDcwZDhjNTg2N2E5MTY5OTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.tWkyyEGSIN7PKbW2AhEqibCWAJsfyMnbLX6OZgnCz7s)
## Check all the applicable boxes
• I updated the documentation accordingly.
• All new and existing tests passed.
• All commits are signed-off.
## Related PRs
#3180
## Docs link
### Summary by Bito
This PR introduces configurable builder images via the builder_config parameter, replacing hardcoded references with defaults in the image_spec module. The changes support more flexible configuration, allowing custom registry images for uv and micromamba images as discussed in issue #3180. It also updates the Dockerfile template, enhances GeoPandas encoder, and improves Slurm connectors.
Unit tests added: True
Estimated effort to review (1-5, lower is better): 2
flyteorg/flytekitcuddly-jelly-27016
04/23/2025, 5:00 PM