Skip to content

Use go-containerregistry image processing from container-diff#181

Merged
nkubala merged 2 commits intoGoogleContainerTools:masterfrom
nkubala:container-diff-deps
Oct 31, 2018
Merged

Use go-containerregistry image processing from container-diff#181
nkubala merged 2 commits intoGoogleContainerTools:masterfrom
nkubala:container-diff-deps

Conversation

@nkubala
Copy link
Contributor

@nkubala nkubala commented Oct 31, 2018

This change integrates the latest version of container-diff, which cleans up the image processing and lets go-containerregistry do most of the work.

Since we don't have Prepper to use directly anymore, we'll use the prefix heuristic from container-diff to try to infer the source of the image, starting with the local docker daemon and then trying from remote. Eventually, we might want to split this logic up in container-diff so we can call something like GetImageFromRemote or GetImageFromDaemon directly.

It might also be worth considering moving the GetImageFromXXX logic into go-containerregistry, since it's really just a glorified wrapper around mutate.Extract.

@nkubala nkubala force-pushed the container-diff-deps branch from cba6d0d to 2b3e2d9 Compare October 31, 2018 20:42
@nkubala nkubala merged commit 4fe00b0 into GoogleContainerTools:master Oct 31, 2018
@nkubala nkubala deleted the container-diff-deps branch October 31, 2018 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants