|
|
|
|
|
by cyberax
346 days ago
|
|
> Buildkit is integrated into dockerd the same way the old builder was. If you want a newer Buildkit you'll need to run it separately of course. I don't think that the older builder created special containers for itself? > I'm not quite sure I understand what you are trying to do with nfs there. But you can definitely export the cache to a local filesystem and import it with cache-from. Which is dog-slow, because it squirts the cache through a socket. I have an NFS disk that can be used to cache the data directly. This was just one of the attempts to make it go faster. > You can also provide named contexts. Which can only refer to images that are built inside this particular buildkit or are pullable from a repo. This is really all I want, a way to quickly reused the previous state saved in some format in Github Cache, NFS, or other storage. |
|
Buildkit doesn't create special containers for itself? It's literally a service integrated into dockerd.
> Which can only refer to images that are built inside this particular buildkit or are pullable from a repo.
No, it supports anything Buildkit can fetch: git, http, client dir... for that matter the client itself can shim that to be whatever it wants.
> This is really all I want, a way to quickly reused the previous state saved in some format in Github Cache, NFS, or other storage.
You can cache to GitHub actions cache, S3, az blob, gcs, registries, or export to the client.
Anything you want to stick it on is going to require copying the data, and yeah that's going to be expensive.