Method: Gitlab::QA::Component::MailHog#start

Defined in:
lib/gitlab/qa/component/mail_hog.rb

#startObject



22
23
24
25
26
27
28
29
30
31
# File 'lib/gitlab/qa/component/mail_hog.rb', line 22

def start
  docker.run(image: image, tag: tag) do |command|
    command << '-d '
    command << "--name #{name}"
    command << "--net #{network}"
    command << "--hostname #{hostname}"
    command << "--publish 1025:1025"
    command << "--publish 8025:8025"
  end
end