<#4360 [Core feature] ImageSpec Improvements> Issu...
# flyte-github
c
#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,...)
1. 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 2. ImageSpec should always be immutable 3. 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()
...
1. Every Example of ImageSpec should use an automatic base Image (flytekits image), thus skip having a base image 2. Every Example of ImageSpec should use configurable registry, example
Copy code
i = ImageSpec(
   registry=os.env.get("OCI_REGISTRY", "flyteorg/default"),
)
1. 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