Services for compute platforms and container schedulers
- We'll add compute platform credentials (DO) to the admin settings so GitLab can autoscale CI without needing to setup a runner.
- Support the other platform credentials that supported by Docker Machine
- Reuse this functionality for dev, deploy, pages
- Add support for schedulers (Kubernetes)
Currently we require a user to:
- Have or create VM
- Login to VM
- Find GitLab Runner installation docs
- Copy & paste commands
- Type
gitlab-runner register
- Copy & paste URL
- Copy & paste token
It takes a long time, and too many clicks in my opinion.
Outdated:
Maybe we could add a button: Launch VM
.
- User clicks
Launch VM
. Gets redirected tohttps://cloud.digitalocean.com/droplets/new
and has the VM creation form filled. - Add SSH key (if doesn't have)
- Choose hostname (if doesn't like existing one)
- Click create
- Wait around 2 minutes to start building a project.
How it would work:
- We would fill the
user-data
(cloud-init) with GitLab Runner installation and registration commands. - User would have to wait some time.
- We could send an e-mail that your runner is registered and you can start using it.
However, Digital Ocean doesn't allow to pre-fill user-data. They considering that: https://twitter.com/digitalocean/status/715557008603267073.
The nice thing about this approach would be that we would not require any API tokens to put into GitLab. Since we don't want to manage the machines we don't need to. We want to ease the process of launching VM with Runner. This would work well on GitLab.com and as well on-premise installations.
What do you think? @sytses @JobV @grzesiek @tmaczukin
Edited by Jason Yavorska