Commit Graph

27 Commits

Author SHA1 Message Date
Quentin Machu
ff3c6eccc8 contrib: Catch signals to delete tmp folder in local-analyze-images
- Create the temporary folder earlier in the app (main instead of save)
- Catch SIGINT/SIGKILL signals to delete the temporary folder and exit
2016-04-25 16:38:17 -04:00
Harsha Yalamanchili
ed1a2b6ffd fix typo in errors.go 2016-03-25 16:40:26 -07:00
Jimmy Zelinskie
1a695231c6 Merge pull request #118 from coreos/cleanup_contrib
contrib: Use `return` instead of `os.Exit(1)` in analyze-local-images
2016-03-25 14:34:22 -04:00
Quentin Machu
55e9c0d854 contrib: Fix dead link from analyze-local-images' README 2016-03-25 12:13:12 -04:00
Quentin Machu
1040dbbff9 contrib: Use return instead of os.Exit(1) in analyze-local-images
In order to cleanup properly the allocated resources (`defer`).

Fixes #117
2016-03-24 15:16:46 -04:00
Quentin Machu
251df954ce contrib: Add a ability to force colored output in analyze-local-images
Just like `ls`, this commit introduces the ability to specify `-color
always` or `-color never` to force colorization, regardless of whether
the TTY is a terminal or not.
2016-03-17 19:19:29 -04:00
Quentin Machu
f024576223 contrib: Add vendors to analyze-local-images 2016-03-17 15:53:33 -04:00
Joseph Schorr
80ddc7f949 contrib: Pretty up analyze-local-images 2016-03-17 15:53:16 -04:00
Quentin Machu
e34171025d contrib: Add colors / Modify spacing in the analyze-local-images's output 2016-03-17 13:27:58 -04:00
Quentin Machu
93ffc5a1e5 contrib: Show feature line only if there's a vuln in analyze-local-images 2016-03-17 13:27:58 -04:00
Quentin Machu
910288fc97 contrib: Add minimum severity support to analyze-local-images 2016-03-17 11:41:00 -04:00
Jimmy Zelinskie
68250f392b api/v1: create namespace type
This change creates a struct type for namespaces rather than using a
string. This enables us to extend namespaces in the future to contain
metadata. This change also required renaming other field references of
namespaces to "NamespaceName".

Fixes #99
2016-03-16 15:28:59 -04:00
yangshukui
6915f6c5c1 fix allowhost
Signed-off-by: yangshukui <yangshukui@huawei.com>
2016-03-08 14:41:14 +08:00
Jimmy Zelinskie
001c0a73d3 contrib: adapt analyze-local-images for new API 2016-02-24 16:43:19 -05:00
liangchenye
9bad9be19b update analyze-local-image with new API
Signed-off-by: liangchenye <liangchenye@huawei.com>
2016-02-24 16:39:25 -05:00
Matthias Nüßler
2300ae9ad7 Add output for package causing vulnerability
Include the name of package that caused the vulnerability in the
output.
2016-02-18 15:03:28 +01:00
liangchenye
fee0bb5e49 contrib: load image history from 'manifest.json' first due to
docker 1.10 changes.

Fixes #69

Signed-off-by: liangchenye <liangchenye@huawei.com>
2016-02-14 14:15:07 +08:00
Quentin Machu
e834301941 Merge pull request #49 from liangchenye/master
Add DataDetector to support ACI and other layout format
2016-01-07 10:44:40 -05:00
David Xia
f2009513d5 Fix typo in doc 2016-01-04 13:14:12 -05:00
Liang Chenye
4b11491067 add ImageFormat to worker_test and programs under contrib
Signed-off-by: Liang Chenye <liangchenye@huawei.com>
2015-12-15 21:01:22 -08:00
Lei Jitang
5f876d20a6 Update README.md of analyze_local_image
The latest Clair use config file for configuration, the command line to
run Clair instance is outdate in the README.md

Signed-off-by: Lei Jitang <leijitang@huawei.com>
2015-12-14 22:35:38 -05:00
Quentin Machu
7df8e7fb1a contrib: add copyright in analyze-local-images 2015-11-29 15:56:34 -05:00
Quentin Machu
867279a5c9 contrib: Improve analyze-local-images docs and launch command.
Fixes #32
2015-11-24 16:37:11 -05:00
Quentin Machu
9391417b2d contrib: Wait for extraction to finish before continuing. 2015-11-24 11:11:01 -05:00
Michael Stapelberg
f81bc29b9e Fix installation command in README.md
The package name was missing an “s”, and “go install” only works when you already have downloaded the package.
2015-11-23 22:35:09 +01:00
Andrew Lewis
8d071e28ff contrib: Don't pass -z to tar in analyze-local-images 2015-11-23 16:42:23 +02:00
Quentin Machu
46f7645a53 contrib: Add a tool to analyze local Docker images 2015-11-20 15:32:45 -05:00