Class: Gitlab::QA::Component::RunnerOps

Inherits:
Base
  • Object
show all
Includes:
Support::Shellout
Defined in:
lib/gitlab/qa/component/runner_ops.rb

Constant Summary collapse

RUNNER_DESCRIPTION =
"QA Runner"
DOCKER_IMAGE =
"registry.gitlab.com/gitlab-org/gitlab-runner:alpine"
BUILD_IMAGE =
"registry.gitlab.com/gitlab-org/gitlab-build-images:gitlab-qa-alpine-ruby-2.7"

Constants inherited from Base

Base::CERTIFICATES_PATH

Instance Attribute Summary

Attributes inherited from Base

#additional_hosts, #airgapped_network, #docker, #environment, #logger, #name, #network, #network_aliases, #ports, #runner_network, #secrets, #volumes

Instance Method Summary collapse

Methods included from Support::Shellout

shell

Methods inherited from Base

#add_network_alias, #hostname, #image, #initialize, #instance, #ip_address, #prepare, #prepare_airgapped_network, #prepare_docker_container, #prepare_docker_image, #prepare_network, #prepare_runner_network, #process_exec_commands, #pull, #restart, #start, #start_instance, #tag, #teardown, #teardown!

Methods included from Scenario::Actable

#act, included

Constructor Details

This class inherits a constructor from Gitlab::QA::Component::Base

Instance Method Details

#setup_runner(gitlab) ⇒ Object



13
14
15
16
17
# File 'lib/gitlab/qa/component/runner_ops.rb', line 13

def setup_runner(gitlab)
  token = SecureRandom.hex(15)
  add_runner_to_gitlab(gitlab, token)
  register_docker_runner(gitlab, token)
end