openllb / hlb

A developer-first language to build and test any software efficiently
https://openllb.github.io/hlb/
Apache License 2.0
108 stars 12 forks source link

`--cache-from` alternative? #333

Open vlad-ivanov-name opened 2 years ago

vlad-ivanov-name commented 2 years ago

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

hinshun commented 2 years ago

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...

vlad-ivanov-name commented 2 years ago

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