We have just merged the #20664 change that heavily simplified the way how our images are build and cached. We did not have any task implemented so far to cover those caching (I worked on this simplification in parallel) so the changes should affect Breeze2 only very slightly.
The nice thing is that we have 700 (!) less lines of bash by just this change so the Breeze/CI Python rewrite project suddenly became way simpler :).
Those are the changes that I think affect current breeze2 work and should be implemented:
- no
--force-pull flag - the caching mechanism of buildkit is so good that we do not have to force pull image any more
- no
-check-if-base-python-image-updated flag - we do not keep base python image any more in our registry and we do not need to refresh the base image. Base image will be refreshed automatically as we also warn the users that they should always rebase to latest branch HEAD to rebuild the image
- no
push-image command - we do not need to push images any more. instead we have prepare-build-cache command which builds images locally and pushes cache for them.
- no more complex "check if image needs pull" logic is needed any more.
We have just merged the #20664 change that heavily simplified the way how our images are build and cached. We did not have any task implemented so far to cover those caching (I worked on this simplification in parallel) so the changes should affect Breeze2 only very slightly.
The nice thing is that we have 700 (!) less lines of
bashby just this change so the Breeze/CI Python rewrite project suddenly became way simpler :).Those are the changes that I think affect current breeze2 work and should be implemented:
--force-pullflag - the caching mechanism of buildkit is so good that we do not have to force pull image any more-check-if-base-python-image-updatedflag - we do not keep base python image any more in our registry and we do not need to refresh the base image. Base image will be refreshed automatically as we also warn the users that they should always rebase to latest branch HEAD to rebuild the imagepush-imagecommand - we do not need to push images any more. instead we haveprepare-build-cachecommand which builds images locally and pushes cache for them.