Skip to content
This repository was archived by the owner on Aug 28, 2019. It is now read-only.

feature request: support "docker load" like functionality for input caching #16

Closed
eedwards-sk opened this issue Apr 9, 2019 · 3 comments

Comments

@eedwards-sk
Copy link

while there is support for build caches already, this doesn't solve a use case where you want to start with layers from a previous image build without having a local build cache

ideally, I would be able to provide an input image.tar file as an input cache

this image would then be loaded before the build starts, so any cached layers (with no changes) are not rebuilt

similar to a "docker load", except since this task library doesn't really deal with repositories, that could be handled by an upstream resource that saves the image.tar file and passes it to this task

not sure if this is possible based on a cursory glance at img itself, but I wanted to toss out this use case either way

@jbhannah
Copy link

jbhannah commented Aug 7, 2019

I ran into this too, so I made a builder that uses BuildKit directly and takes advantage of the ability to save the build cache either locally or to a registry. The script within the image itself is more complex but the usage of it is largely the same (and it's building itself!).

@vito
Copy link
Contributor

vito commented Aug 13, 2019

@jbhannah Interesting! Maybe we should just switch to using buildkit directly?

@cirocosta also has a buildkit task here: https://github.com/cirocosta/buildkit-task

@vito
Copy link
Contributor

vito commented Aug 27, 2019

@jbhannah I went ahead and wrote a new task which uses buildkit directly under the hood: https://github.com/vito/oci-build-task - I had been wanting to rewrite it with tests and in Go so that was a good centerpiece for the refactor. 🙂

@eedwards-sk I'm going to archive this repo, so I'll close this issue. The equivalent feature request on the new task is here: concourse/oci-build-task#1

@vito vito closed this as completed Aug 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants