<#4360 [Core feature] ImageSpec Improvements> Issu...
# flyte-github
a
#4360 [Core feature] ImageSpec Improvements Issue created by kumare3 Motivation: Why do you think this is important? Imagespec is awesome, but not yet complete. 1. It should be possible to always rebuild and skip the caching
Copy code
ImageSpec(rebuild_always=True,...)
2. Dynamic workflows that were run using
pyflyte run
may use tasks whose imageSpec was not built. It would be great to fail with a good error 3. ImageSpec should always be immutable 4. Every update is like a builder, returns a new imagespec. this is like composition.
Copy code
b = ImageSpace()
c = b.with_commands()
d = c.with_pip_packages()
...
5. Every Example of ImageSpec should use an automatic base Image (flytekits image), thus skip having a base image 6. Every Example of ImageSpec should use configurable registry, example
Copy code
i = ImageSpec(
   registry=os.env.get("OCI_REGISTRY", "flyteorg/default"),
)
7. It should be possible to print the imagespec in a very human readable way. Thus we should have a
pyflyte build --dryrun
that shows the various imagespecs Goal: What should the final outcome look like, ideally? Let's make imagespec awesome Describe alternatives you've considered NA Propose: Link/Inline OR Additional context No response Are you sure this issue hasn't been raised already? ☑︎ Yes Have you read the Code of Conduct? ☑︎ Yes flyteorg/flyte