Method: Gitlab::QA::Docker::Engine#run

Defined in:
lib/gitlab/qa/docker/engine.rb

#run(image:, tag: nil, args: []) ⇒ Object



33
34
35
36
37
38
39
40
41
42
# File 'lib/gitlab/qa/docker/engine.rb', line 33

def run(image:, tag: nil, args: [])
  Docker::Command.new('run', stream_output: stream_output).tap do |command|
    yield command if block_given?

    command << full_image_name(image, tag)
    command << args if args.any?

    command.execute!
  end
end