hlb icon indicating copy to clipboard operation
hlb copied to clipboard

`--cache-from` alternative?

Open vlad-ivanov-name opened this issue 1 year ago • 2 comments

I saw some discussions around cache in https://github.com/openllb/hlb/issues/58, but that issue hasn't been updated in a while. What would be an equivalent of --cache-from of Docker? This is often used to supply additional layer cache sources and is very useful when building Docker containers on multiple machines

vlad-ivanov-name avatar Aug 23 '22 11:08 vlad-ivanov-name

Hi @vlad-ivanov-name, we can easily add --cache-from but I wanted the UX to be handled better by HLB, using those features under the hood. We don't have a concrete strategy on this yet...

hinshun avatar Aug 23 '22 17:08 hinshun

Hi @hinshun, thank you for your reply. I agree that the whole UX of docker cache is not so trivial to design, but maybe in the meantime while it’s being designed we could have --cache-from to make hlb more feature complete when compared to docker? This would help adopt hlb in use cases where Docker was previously used with this option

vlad-ivanov-name avatar Aug 23 '22 17:08 vlad-ivanov-name