Alex Goodman
ba4f63099d
Add release process ( #89 )
...
* add check for app update; fix ETUI error handling
* validate user args
* add goreleaser support
* replace cgo dependencies (go-rpm) with go equivalents
* add acceptance tests against build snapshot
* add brew tap + acceptance test pipeline
* add mac acceptance tests
* fix compare makefile
* fix mac acceptance tests
* add release pipeline with wait checks
* add token to release step
* rm dir presenters int test
* enforce dpkg to be non interactive
Co-authored-by: Alfredo Deza <adeza@anchore.com>
* pin brew formulae
* pin skopeo to formulae url
* only run acceptance tests
Co-authored-by: Alfredo Deza <adeza@anchore.com>
2020-07-23 10:52:44 -04:00
Alfredo Deza
9f314eb493
cataloger: support npm packages from package-lock.json files
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-23 09:51:05 -04:00
Alfredo Deza
fb4b83cf3e
cataloger: define Javascript (npm) package type
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-23 09:51:01 -04:00
Alex Goodman
44c69f1f91
add go.mod cataloger ( #97 )
2020-07-23 08:17:30 -04:00
Alfredo Deza
50eae46d37
type: add PythonPkg types for requirements-based packages
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-21 15:49:19 -04:00
Alfredo Deza
f8a2b7a626
tests: verify requirements.txt captures versions
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-21 15:49:19 -04:00
Alfredo Deza
83056a4b6f
cataloger: add a requirements.txt parser
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-21 15:38:30 -04:00
Alfredo Deza
8747b68b86
cataloger: add a glob path for parsing requirements.txt
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-21 14:37:06 -04:00
Alex Goodman
7ebb9f4e0b
Add check for app update ( #88 )
...
* add check for app update; fix ETUI error handling
* validate user args
2020-07-21 12:02:03 -04:00
Alfredo Deza
cea38fcba3
cataloger: use ** for glob patterns
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-21 11:19:42 -04:00
Alfredo Deza
03bbcfa08d
cataloger: add ability to recurse with doublestar
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-21 11:10:02 -04:00
Alex Goodman
4fa391b4cb
remove metadata from text presenter ( #90 )
2020-07-20 15:28:26 -04:00
Alex Goodman
9e285fd0e2
use common entry point for integration tests; refactor cmd pkg ( #86 )
2020-07-17 15:16:33 -04:00
Alfredo Deza
0534a68ec6
tests for new Identify distro func
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-17 13:32:53 -04:00
Alfredo Deza
e2b71184aa
when no distros are matched, return an UnkownDistro
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-17 13:32:53 -04:00
Alfredo Deza
f51cae2043
distro: add new constructor for getting UnkownDistros
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-17 13:32:53 -04:00
Alfredo Deza
fb6bc116e0
tests: verify carriage returns are parsed in distro files
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-16 17:20:30 -04:00
Alfredo Deza
5edcae13b3
distro: remove unwanted chars from os distro files
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-16 17:19:57 -04:00
Alfredo Deza
a05d58686e
resolvers: do not join paths, it is assumed they are already joined
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-16 13:14:03 -04:00
Alfredo Deza
d82a0872c9
tests: verify MultipleFileContentsByRef gets contents from the right path
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-16 13:14:03 -04:00
Alfredo Deza
d982ad6345
lib: implement a NewScope to produce scopes from inputs
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-15 10:15:58 -04:00
Alfredo Deza
f418c99a3b
remove old text support files
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-15 10:15:58 -04:00
Alfredo Deza
45b5fa82c8
presenters: abstract into text only
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-15 10:15:58 -04:00
Alfredo Deza
e7518ad998
tests: move img-based tests and fixtures
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-15 09:59:40 -04:00
Alfredo Deza
a6e1866cdb
cmd: do not default for images, handle it specifically
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-15 09:59:40 -04:00
Alfredo Deza
2f626bf9fd
directory resolver should join path and target directory for retrieving contents
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-15 09:59:40 -04:00
Alfredo Deza
69b01caba7
update scope tests to use new generic scope
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-15 07:53:28 -04:00
Alfredo Deza
c56b82e529
resolvers: add a directory resolver
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-15 07:53:28 -04:00
Alfredo Deza
5cee2668e3
resolvers: satisfy interface with multiple file contents by ref
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-15 07:53:28 -04:00
Alfredo Deza
6e9171e8a6
presenter: use new scoped source
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-15 07:53:27 -04:00
Alfredo Deza
4b69758f2c
scope: create a new generic Resolver interface
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-15 07:53:27 -04:00
Alfredo Deza
b35a412467
scope: use a generic scope struct instead of specific to images
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-15 07:53:27 -04:00
Alfredo Deza
145bb95a2d
lib: use scope instead of requiring images
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-15 07:53:27 -04:00
Alfredo Deza
d22c1d0838
distro: identify uses the scope resolvers now, not images
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-15 07:53:27 -04:00
Alfredo Deza
923d220a90
controller: use new scope.Resolver interface
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-15 07:53:27 -04:00
Alex Goodman
66a16a67fd
Add support for detecting nested java archives ( #77 )
...
* with sb build app
* test nested jar support
* pin jdk version during parse test (but dont compare version)
2020-07-15 07:42:35 -04:00
Alex Goodman
3f090f9647
fix java cache key for CI; fix circle docker api version ( #79 )
2020-07-13 12:11:11 -04:00
Alex Goodman
502e2afd06
fix linting issue
2020-07-10 07:45:13 -04:00
Alex Goodman
15ff94b56b
tweak java manifest version processing
2020-07-10 07:41:13 -04:00
Alex Goodman
4c7d9ccef7
simplify unzip; update java error statements
2020-07-09 11:53:52 -04:00
Alex Goodman
0f8dcf3f17
Update imgbom/cataloger/java/pom_properties.go
...
Co-authored-by: Alfredo Deza <adeza@anchore.com>
2020-07-09 11:38:02 -04:00
Alex Goodman
c9bfc0aecd
Update imgbom/cataloger/java/pom_properties.go
...
Co-authored-by: Alfredo Deza <adeza@anchore.com>
2020-07-09 11:37:45 -04:00
Alex Goodman
40f8e3a7de
Update imgbom/cataloger/java/java_manifest.go
...
Co-authored-by: Alfredo Deza <adeza@anchore.com>
2020-07-09 11:31:23 -04:00
Alex Goodman
1f89d26902
reduce java packages to java-archive and jenkins-plugin
2020-07-09 10:46:28 -04:00
Alex Goodman
e55db9247e
add java cataloger
2020-07-08 16:16:01 -04:00
Alex Goodman
1896831c39
add rpmdb support; enhance integration tests
2020-07-06 12:55:11 -04:00
Alfredo Deza
3548c7b132
tests for scope.go
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-02 16:09:55 -04:00
Alfredo Deza
3eedb86a1f
tests for protocol.go
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-02 16:09:55 -04:00
Alfredo Deza
c35108b00d
tests: reorganize text img files to match new layout
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-02 16:09:55 -04:00
Alfredo Deza
f49ca8107a
tests: add verification for dirs and imgs
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-02 16:09:55 -04:00