class Gitlab::QA::Component::Alpine


and has to be performed before main component containers are started
Useful for populating volumes beforehand or running any other action that requires a running container
Generic helper component running alpine linux image

def name

def name
  @name ||= "alpine-#{SecureRandom.hex(4)}"
end

def prepare

def prepare
  prepare_docker_container
end

def start

def start
  docker.run(image: image, tag: tag, args: ["tail", "-f", "/dev/null"]) do |command|
    command << "-d"
    command << "--name #{name}"
    command << "--network #{network}" if network
    volumes.each { |to, from| command.volume(to, from, 'Z') }
    environment.each { |key, value| command.env(key, value) }
  end
end