Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Remove docker dependency for local images #100

Merged
merged 4 commits into from
Sep 21, 2017

Conversation

nkubala
Copy link
Contributor

@nkubala nkubala commented Sep 21, 2017

This removes the dependency on the docker client for retrieving images from the local docker daemon in favor of using the containers/image library. The client will now only be used when examining docker history.

Also, fix the tar extension check, cleanup some error handling.

cc @dlorenc

Copy link
Contributor

@dlorenc dlorenc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks for the cleanup here.

cmd/analyze.go Outdated
@@ -51,21 +50,20 @@ var analyzeCmd = &cobra.Command{

func checkAnalyzeArgNum(args []string) error {
if len(args) != 1 {
return errors.New("'analyze' requires one image as an argument: container analyze [image]")
return fmt.Errorf("'analyze' requires one image as an argument: container-diff analyze [image]")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

errors.New is fine here, it's basically the same as fmt.Errorf except fmt does formatting. You're not adding any arguments so we should stick to errors.New

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@nkubala nkubala merged commit ee67c3e into GoogleContainerTools:master Sep 21, 2017
@nkubala nkubala deleted the remove_docker branch September 21, 2017 21:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants