diff options
| author | mo khan <mo.khan@gmail.com> | 2020-10-27 14:55:54 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-10-27 14:55:54 -0600 |
| commit | 5ecf5ed2bfdab1d847f6f569ab015f01fe9c6b07 (patch) | |
| tree | 215ae1bb781d6132883ec65773f05be4bb524e1f /lib/e2e/docker.rb | |
| parent | 21a1500abcbf89560283c1d50ce768ed3e5712ea (diff) | |
test: add spec to scan a Docker image
Diffstat (limited to 'lib/e2e/docker.rb')
| -rw-r--r-- | lib/e2e/docker.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/e2e/docker.rb b/lib/e2e/docker.rb index b2b883c..121e47b 100644 --- a/lib/e2e/docker.rb +++ b/lib/e2e/docker.rb @@ -25,8 +25,9 @@ class Docker arguments = [ :docker, :run, '--rm', "--volume=#{project_path}:/tmp/app", - '--network=host', + '--add-host=clair-vulnerabilities-db:127.0.0.1', '--add-host=maven.test:127.0.0.1', + '--network=host', env_options ] arguments.push(debug ? ["-it", "--entrypoint=''", image, '/bin/bash -l'] : [image, '/analyzer run']) |
