Skip to content
This repository has been archived by the owner on Oct 22, 2023. It is now read-only.

Add support for cache-from (and maybe cache-to) #244

Open
sschuberth opened this issue Sep 5, 2022 · 5 comments
Open

Add support for cache-from (and maybe cache-to) #244

sschuberth opened this issue Sep 5, 2022 · 5 comments

Comments

@sschuberth
Copy link

In order to speed up Batect runs in CI leveraging GitHub Actions and the docker/build-push-action, it would be fabulous if the docker-client could make use of layers cached in the type=gha cache.

@sschuberth
Copy link
Author

I just realized this is also mentioned in the TODO file.

charleskorn added a commit that referenced this issue Oct 3, 2022
This gives us access to some of BuildKit's new features, such as image
caching (see #244).
@charleskorn
Copy link
Contributor

Update on this: unfortunately, there seems to be quite a bit of churn in the BuildKit and buildx libraries to the point where there are multiple mutually-incompatible branches, each containing different bits I need to implement this in a stable and maintainable way.

Until this is fixed, implementing and sustainably supporting cache-from and cache-to in this library (and therefore Batect) is going to be far more effort than I'm prepared to accept. I'm hoping this will be soon, but I can't make any promises.

@sschuberth
Copy link
Author

there seems to be quite a bit of churn in the BuildKit and buildx libraries to the point where there are multiple mutually-incompatible branches

Is there any update on this @charleskorn, has the churn calmed down? And are there any upstream issues that we could follow / upvote in this regard?

@charleskorn
Copy link
Contributor

As far as I can tell, this is still the case unfortunately, although it looks like things are settling down. The main issue is that docker/docker, docker/cli and moby/buildkit are using slightly different versions of each other, which makes it difficult to pull in all three as dependencies in one project, and it seems that all are also undergoing heavy development at the moment.

@sschuberth
Copy link
Author

Friendly ping a few months later: Any idea how difficult it would be to implement cache-from / cache-to by now?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants