You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I would like to add cache capabilities for apko lock.
Background
My usecase is that one is developing a large apko image (that must be built with lockfile - imposed by bazel rules_apko). When iteratively changing the config file, one needs to refresh the lockfile multiple times. For large images this takes quite some time.
The assumption for the cache working would be that the package repository does not change the contents of package under given version (True for Wolfi, False for Alpine). But if this is not satisfied, one has larger problems with building with lockfile anyway and needs to use some artifactory proxy.
Proposed changes
I have 2 proposals how this could be implemented:
Add a cache layer for FetchPackage that is used for lock resolution. That cache could be optional and passed only from lock command to not add overhead to apko build
We could optimize this to cache hashes as well to not recalculate them every time (potentially useful for large packages)
Use already existing cache (done in ExpandPackage) for lock resolution. That would just require some changes to how we create ApkResolved - to make it from ApkExpanded.
Please let me know if any of these sounds reasonable to you, happy to implement then (@mattmoor@jonjohnsonjr )
The text was updated successfully, but these errors were encountered:
Hi,
I would like to add cache capabilities for
apko lock
.Background
My usecase is that one is developing a large apko image (that must be built with lockfile - imposed by bazel rules_apko). When iteratively changing the config file, one needs to refresh the lockfile multiple times. For large images this takes quite some time.
The assumption for the cache working would be that the package repository does not change the contents of package under given version (True for Wolfi, False for Alpine). But if this is not satisfied, one has larger problems with building with lockfile anyway and needs to use some artifactory proxy.
Proposed changes
I have 2 proposals how this could be implemented:
apko build
Please let me know if any of these sounds reasonable to you, happy to implement then (@mattmoor @jonjohnsonjr )
The text was updated successfully, but these errors were encountered: