diff options
| author | mo khan <mo.khan@gmail.com> | 2020-10-28 16:55:57 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-10-28 16:55:57 -0600 |
| commit | 3d6479491b34af2f936e6d7b74fb8d4e8ae553c0 (patch) | |
| tree | fd910cc98ebdcaf1081e7a0d5196a57cf0a09cdf /lib/e2e | |
| parent | 9b2acb0650f9d6ad39147c4c6d51a3da90482eaf (diff) | |
test: install clair-vuln-db host alias outside of CI
Diffstat (limited to 'lib/e2e')
| -rw-r--r-- | lib/e2e/docker.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/e2e/docker.rb b/lib/e2e/docker.rb index 4033663..4f5e788 100644 --- a/lib/e2e/docker.rb +++ b/lib/e2e/docker.rb @@ -24,14 +24,14 @@ class Docker Dir.chdir pwd do arguments = [ :docker, :run, '--rm', - #"--add-host=clair-vulnerabilities-db:127.0.0.1", "--add-host=maven.test:127.0.0.1", + "--entrypoint=/bin/sh", "--network=host", "--volume=#{project_path}:/tmp/app", "--workdir=/tmp/app", env_options, - "--entrypoint=/bin/sh" ] + arguments.push("--add-host=clair-vulnerabilities-db:127.0.0.1") unless ENV['CI'] arguments.push(debug ? ["-it", image] : [image]) arguments.push("-c '#{command}'") system(expand(arguments), exception: true) |
