{"action":"created","issue":{"url":"https://api.github.com/repos/google/go-containerregistry/issues/163","repository_url":"https://api.github.com/repos/google/go-containerregistry","labels_url":"https://api.github.com/repos/google/go-containerregistry/issues/163/labels{/name}","comments_url":"https://api.github.com/repos/google/go-containerregistry/issues/163/comments","events_url":"https://api.github.com/repos/google/go-containerregistry/issues/163/events","html_url":"https://github.com/google/go-containerregistry/issues/163","id":325908437,"number":163,"title":"Add type which could check for layers locally before pulling remotely","user":{"login":"priyawadhwa","id":10676490,"avatar_url":"https://avatars1.githubusercontent.com/u/10676490?v=4","gravatar_id":"","url":"https://api.github.com/users/priyawadhwa","html_url":"https://github.com/priyawadhwa","followers_url":"https://api.github.com/users/priyawadhwa/followers","following_url":"https://api.github.com/users/priyawadhwa/following{/other_user}","gists_url":"https://api.github.com/users/priyawadhwa/gists{/gist_id}","starred_url":"https://api.github.com/users/priyawadhwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/priyawadhwa/subscriptions","organizations_url":"https://api.github.com/users/priyawadhwa/orgs","repos_url":"https://api.github.com/users/priyawadhwa/repos","events_url":"https://api.github.com/users/priyawadhwa/events{/privacy}","received_events_url":"https://api.github.com/users/priyawadhwa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-05-23T23:20:22Z","updated_at":"2018-05-29T20:27:47Z","closed_at":null,"author_association":"NONE","body":"We've been thinking about adding [caching](https://github.com/GoogleContainerTools/kaniko/issues/102) for base image layers to kaniko, and it seems like storing the layers in a persistent volume is probably the best way to do it.\r\n\r\nTo help with that, we were thinking of adding another type in go-containerregistry which could check to see which layers of an image are already present at a given path, and then pull any remaining layers. We could use it in kaniko to see which cached layers are present in the PV and then get any additional ones. Just wondering if anybody had any thoughts about feasibility/implementation?\r\n\r\ncc @dlorenc  \r\n\r\n\r\n\r\n "},"comment":{"url":"https://api.github.com/repos/google/go-containerregistry/issues/comments/392932174","html_url":"https://github.com/google/go-containerregistry/issues/163#issuecomment-392932174","issue_url":"https://api.github.com/repos/google/go-containerregistry/issues/163","id":392932174,"user":{"login":"priyawadhwa","id":10676490,"avatar_url":"https://avatars1.githubusercontent.com/u/10676490?v=4","gravatar_id":"","url":"https://api.github.com/users/priyawadhwa","html_url":"https://github.com/priyawadhwa","followers_url":"https://api.github.com/users/priyawadhwa/followers","following_url":"https://api.github.com/users/priyawadhwa/following{/other_user}","gists_url":"https://api.github.com/users/priyawadhwa/gists{/gist_id}","starred_url":"https://api.github.com/users/priyawadhwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/priyawadhwa/subscriptions","organizations_url":"https://api.github.com/users/priyawadhwa/orgs","repos_url":"https://api.github.com/users/priyawadhwa/repos","events_url":"https://api.github.com/users/priyawadhwa/events{/privacy}","received_events_url":"https://api.github.com/users/priyawadhwa/received_events","type":"User","site_admin":false},"created_at":"2018-05-29T20:27:47Z","updated_at":"2018-05-29T20:27:47Z","author_association":"NONE","body":"We're thinking kaniko could call a separate service which would be responsible for reading from and writing to the PD that backs the cache, so I don't think anything related to the PD has to spill over into this library's implementation.  For kaniko specifically I also don't think we need to worry about eviction. \r\n\r\nI'm good with waiting for the functional options, for now I'll probably start testing with the changes in #164 and do some benchmarking! "}}
{"actor":{"display_login":"priyawadhwa"}}