examine 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0f7d30f66f0b34778516fcf2b3ce7c78c4e739a89dcf7b5dda1b1669e60b28f
4
- data.tar.gz: bbe264a31ee2cee91c8039ff45839ced136073f08d7a820e5fa47a43fecc8464
3
+ metadata.gz: 5cf198b3467cb13f6df21581c0aef817761ecefed231344d8a449c468feb0589
4
+ data.tar.gz: d8cd86723d4e7a41489659d08268ad15e4fa61289ea1423c8a22517668073ee3
5
5
  SHA512:
6
- metadata.gz: 5bc0f075a47b62872f43635eef0d0cca61e6f998dbbe068fc13061a1b12db3aee7cda41183024292cc29828be2c890aed6ce82d6edaa86c138a95edc2ac1b98b
7
- data.tar.gz: d4a4f951c73fc4aff984af309397913f1981ebbfc95cf8b8a1bb1f4cc4372706ab7eda9561bae47fb1dc0407a13e20900b74de787f1adcd732ba1ab7e3e562a8
6
+ metadata.gz: b59d4abb283bcf0dda9327b90002cc82533e2a1fee851d5235e983323d23173a47261c0b1808842713bd6834ce8d347077b885bafd4928f9b8e48400b0800cab
7
+ data.tar.gz: 8fd0c0d806c61eb143aca5ae6222cbda4c45a4384dca929c2a17b5744c5ec7ad4e6d6ba0085f54317839b79824bd626af198537acdb96e149f9e1482a163e4eb
@@ -1,6 +1,9 @@
1
1
  services:
2
2
  - docker:dind
3
3
 
4
+ include:
5
+ template: License-Management.gitlab-ci.yml
6
+
4
7
  stages:
5
8
  - build
6
9
  - test
@@ -1,15 +1,15 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- examine (0.1.2)
4
+ examine (0.1.3)
5
5
  down (~> 4.8)
6
6
  thor (~> 0.20)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- addressable (2.6.0)
12
- public_suffix (>= 2.0.2, < 4.0)
11
+ addressable (2.7.0)
12
+ public_suffix (>= 2.0.2, < 5.0)
13
13
  ast (2.4.0)
14
14
  bundler-audit (0.6.1)
15
15
  bundler (>= 1.2.0, < 3)
@@ -21,7 +21,7 @@ GEM
21
21
  parallel (1.17.0)
22
22
  parser (2.6.3.0)
23
23
  ast (~> 2.4.0)
24
- public_suffix (3.1.1)
24
+ public_suffix (4.0.6)
25
25
  rainbow (3.0.0)
26
26
  rake (10.5.0)
27
27
  rspec (3.8.0)
@@ -63,4 +63,4 @@ DEPENDENCIES
63
63
  rubocop-rspec (~> 1.22)
64
64
 
65
65
  BUNDLED WITH
66
- 2.0.2
66
+ 2.1.4
data/README.md CHANGED
@@ -26,7 +26,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
26
26
 
27
27
  ## Contributing
28
28
 
29
- Bug reports and pull requests are welcome on GitLab at https://gitlab.com/xlgmokha/examine.
29
+ Bug reports and pull requests are welcome on GitLab at https://github.com/mokhan/examine.
30
30
 
31
31
  ## License
32
32
 
@@ -12,7 +12,6 @@ module Examine
12
12
  'x86_64-linux' => 'clair-scanner_linux_amd64'
13
13
  }.freeze
14
14
 
15
- class_option :local_scan_version, desc: 'Version of the arminc/clair-local-scan image', default: 'latest', type: :string
16
15
  class_option :scanner_version, desc: 'Version of the clair-scanner', default: 'v12', type: :string
17
16
  class_option :url, desc: 'clair url', default: 'http://localhost:6060', type: :string
18
17
 
@@ -24,7 +23,7 @@ module Examine
24
23
  spawn clair_db
25
24
  wait_until clair_db_running?
26
25
 
27
- spawn clair_local_scan(options[:local_scan_version])
26
+ spawn clair_local_scan
28
27
  wait_until clair_local_scan_running?
29
28
  wait_until clair_local_scan_api_reachable?
30
29
  end
@@ -66,6 +65,8 @@ module Examine
66
65
  command = [
67
66
  clair_exe, "-c #{options[:url]}",
68
67
  "--ip #{clair_ip}",
68
+ '--threshold High',
69
+ '--reportAll=false',
69
70
  "-r #{options[:report]}", "-l #{options[:log]}", image
70
71
  ]
71
72
  command.insert(-2, "-w #{options[:whitelist]}") if options[:whitelist]
@@ -114,11 +115,11 @@ module Examine
114
115
  end
115
116
 
116
117
  def clair_db
117
- 'docker run -d --name clair-db arminc/clair-db:latest'
118
+ 'docker run -d --name clair-db --network=host arminc/clair-db:latest'
118
119
  end
119
120
 
120
- def clair_local_scan(version)
121
- "docker run --restart=unless-stopped -p 6060:6060 --link clair-db:postgres -d --name clair arminc/clair-local-scan:#{version}"
121
+ def clair_local_scan
122
+ 'docker run --restart=unless-stopped -p 6060:6060 --add-host=postgres:0.0.0.0 --network=host -d --name clair arminc/clair-local-scan:latest'
122
123
  end
123
124
 
124
125
  def clair_local_scan_running?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Examine
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: examine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - mo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-25 00:00:00.000000000 Z
11
+ date: 2020-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: down
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  - !ruby/object:Gem::Version
171
171
  version: '0'
172
172
  requirements: []
173
- rubygems_version: 3.0.3
173
+ rubygems_version: 3.1.4
174
174
  signing_key:
175
175
  specification_version: 4
176
176
  summary: Examine your software.