summaryrefslogtreecommitdiff
path: root/lib/e2e/docker.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/e2e/docker.rb')
-rw-r--r--lib/e2e/docker.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/e2e/docker.rb b/lib/e2e/docker.rb
index 121e47b..f8347e9 100644
--- a/lib/e2e/docker.rb
+++ b/lib/e2e/docker.rb
@@ -24,13 +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",
+ "--network=host",
"--volume=#{project_path}:/tmp/app",
- '--add-host=clair-vulnerabilities-db:127.0.0.1',
- '--add-host=maven.test:127.0.0.1',
- '--network=host',
+ "--workdir=/tmp/app",
env_options
]
- arguments.push(debug ? ["-it", "--entrypoint=''", image, '/bin/bash -l'] : [image, '/analyzer run'])
+ arguments.push(debug ? ["-it", "--entrypoint=''", image, '/bin/sh'] : [image, '/analyzer run'])
command = expand(arguments)
system(command, exception: true)
end