Skip to content
Snippets Groups Projects
README.md 1014 B
Newer Older
# GitLab CI Runners for the ORNL Research Cloud VM instances 
McDonnell, Marshall's avatar
McDonnell, Marshall committed
  
This Terraform setup creates and registers GitLab CI Runner
VMS in the ORNL Research Cloud using Docker executor mode.
McDonnell, Marshall's avatar
McDonnell, Marshall committed
The steps are:

1. Setup the SSH key pair in the ORNL Research Cloud.
2. Spin up the VMs.
3. Provision using the `template_file` called `user-data.sh`
   to install Docker and `gitlab-runner`
4. Setup each VM as a GitLab Runner
5. For each GitLab Token, each runner is registered with that
   project
6. When the resources is destroyed, the runners will be 
   unregistered from all GitLab projects
McDonnell, Marshall's avatar
McDonnell, Marshall committed

There are many "modifable" inputs but the required ones are:

1. `prefix` - prefix to append to all runner names
2. `runner_count` - number of runners
3. `runner_tokens` - tokens of GitLab projects to register the runner against
McDonnell, Marshall's avatar
McDonnell, Marshall committed

You can also add installation requirements on the runner using the `user_data`
input variable to customize the runner.

The module inputs can be found in `modules/ornl-cloud-gitlab-runners/inputs.tf`