Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
topics:docker-install-gitlab-ci-runner [2017/04/09 16:09] orzfly created |
topics:docker-install-gitlab-ci-runner [2017/04/09 17:09] orzfly |
||
---|---|---|---|
Line 10: | Line 10: | ||
EXAMPLE # find at https:// | EXAMPLE # find at https:// | ||
Please enter the gitlab-ci description for this runner: | Please enter the gitlab-ci description for this runner: | ||
- | [EXAMPLE00000]: | + | [EXAMPLE00000]: |
Please enter the gitlab-ci tags for this runner (comma separated): | Please enter the gitlab-ci tags for this runner (comma separated): | ||
- | digitalocean, | + | EXAMPLE,digitalocean, |
Whether to run untagged builds [true/ | Whether to run untagged builds [true/ | ||
[false]: true | [false]: true | ||
Line 22: | Line 22: | ||
Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded! | Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded! | ||
</ | </ | ||
- | - Create ''/ | + | - Create ''/ |
+ | * DigitalOcean: | ||
concurrent = 5 | concurrent = 5 | ||
Line 30: | Line 31: | ||
token = " | token = " | ||
executor = " | executor = " | ||
+ | environment = [" | ||
[runners.docker] | [runners.docker] | ||
image = " | image = " | ||
Line 51: | Line 53: | ||
] | ] | ||
</ | </ | ||
+ | * List all images: <code shell-session> | ||
+ | * AWS EC2: <code toml / | ||
+ | concurrent = 5 | ||
+ | |||
+ | [[runners]] | ||
+ | name = " | ||
+ | url = " | ||
+ | token = " | ||
+ | executor = " | ||
+ | environment = [" | ||
+ | [runners.docker] | ||
+ | image = " | ||
+ | tls_verify = false | ||
+ | privileged = true | ||
+ | disable_cache = true | ||
+ | [runners.cache] | ||
+ | Insecure = false | ||
+ | [runners.machine] | ||
+ | IdleCount = 0 | ||
+ | IdleTime = 1200 | ||
+ | MachineDriver = " | ||
+ | MachineName = " | ||
+ | MachineOptions = [ | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ] | ||
+ | </ | ||
+ | * AWS AMI is only available per region! https:// | ||
- Save systemd configuration< | - Save systemd configuration< | ||
[Unit] | [Unit] | ||
Line 81: | Line 115: | ||
# systemctl start gitlab-ci-runner@digitalocean-auto-nyc3.service | # systemctl start gitlab-ci-runner@digitalocean-auto-nyc3.service | ||
</ | </ | ||
+ | |||
+ | ===== Notes ===== | ||
+ | * Version | ||
+ | * https:// | ||
+ | * Runner v9.0+ requires GitLab v9.0 | ||
+ | * Runner v1.11.x supports GitLab v8.16.x ~ v9.5.x | ||
+ | * Private Docker Registry? Add '' | ||
+ | * https:// | ||
+ | * Self-signed SSL? | ||
+ | * https:// | ||
+ | * Mount your certificate file at ''/ | ||
+ | * Do NOT stop runners if it has started any VMs! Just wait until all VMs terminated. If you do... | ||
+ | - Terminate all machines on your own at DigitalOcean/ | ||
+ | - Remove all folders in ''/ | ||
===== See Alsos ===== | ===== See Alsos ===== | ||
* https:// | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
- | {{tag> | + | {{tag> |