summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-10-28 16:55:57 -0600
committermo khan <mo.khan@gmail.com>2020-10-28 16:55:57 -0600
commit3d6479491b34af2f936e6d7b74fb8d4e8ae553c0 (patch)
treefd910cc98ebdcaf1081e7a0d5196a57cf0a09cdf /lib
parent9b2acb0650f9d6ad39147c4c6d51a3da90482eaf (diff)
test: install clair-vuln-db host alias outside of CI
Diffstat (limited to 'lib')
-rw-r--r--lib/e2e/docker.rb4
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)