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

Change the default analysis type from apt to size #266

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ container-diff analyze <img> --type=apt --type=node [Apt and Node]
# --type=<analyzer1> --type=<analyzer2> --type=<analyzer3>,...
```

By default, with no `--type` flag specified, container-diff will run Apt package analysis.
By default, with no `--type` flag specified, container-diff will run image size analysis.

To use container-diff to perform a diff analysis on two images, you need two Docker images (in the form of an ID, tarball, or URL from a repo). Once you have those images, you can run any of the following differs:
```shell
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func validateArgs(args []string, validatefxns ...validatefxn) error {

func checkIfValidAnalyzer(_ []string) error {
if len(types) == 0 {
types = []string{"apt"}
types = []string{"size"}
}
for _, name := range types {
if _, exists := differs.Analyzers[name]; !exists {
Expand Down