Difference between revisions of "GitLab Runner"

From wikieduonline
Jump to navigation Jump to search
 
(47 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[wikipedia:GitLab|Gitlab]] Runner<ref>https://docs.gitlab.com/runner/</ref> released in January 2015<ref>https://gitlab.com/gitlab-org/gitlab-runner/commit/6f1b10ef6d72de4afc0937ca9337b41be543d64c</ref> and written in [[Go]] offers [[continuous Integration/Continuous Delivery (CI/CD)|continuous integration]] in [[DevOps/GitLab|GitLab]], it is used to run your CI/CD jobs and send the results back to GitLab.  
+
[[GitLab]] Runner<ref>https://docs.gitlab.com/runner/</ref> released in January 2015<ref>https://gitlab.com/gitlab-org/gitlab-runner/commit/6f1b10ef6d72de4afc0937ca9337b41be543d64c</ref> and written in [[Go]] offers [[continuous Integration/Continuous Delivery (CI/CD)|continuous integration]] in [[GitLab]], it is used to run your CI/CD jobs and send the results back to GitLab.  
 +
 
  
Configuration: <code>/etc/gitlab-runner/config.toml</code>. Read https://docs.gitlab.com/runner/configuration/advanced-configuration.html
 
  
 
Configuration allows to define  
 
Configuration allows to define  
* how many jobs you can run in parallel <code>concurrent</code> option
+
* How many jobs you can run in parallel <code>[[concurrent]]</code> option
 
* Integration with [[sentry]]
 
* Integration with [[sentry]]
* Integration with [[Prometheus monitoring|Prometheus]]
+
* Integration with [[Prometheus]]
  
 
*  Runners cache: [runners.cache] https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runnerscache-section
 
*  Runners cache: [runners.cache] https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runnerscache-section
  
==Commands ==
+
== Configuration ==
* <code>gitlab-runner --help</code>
+
<code>[[/etc/gitlab-runner/config.toml]]</code>. Read https://docs.gitlab.com/runner/configuration/advanced-configuration.html
* <code>gitlab-runner verify</code>
+
 
* <code>gitlab-runner list</code>
+
Known problems: [[shell executor]] doesn't clean up [[build directories]] <ref>https://gitlab.com/gitlab-org/gitlab-runner/issues/3856#note_127887227</ref>
 +
 
 +
== Commands ==
 +
Full command list: https://docs.gitlab.com/runner/commands/
 +
* <code>[[gitlab-runner --help]]</code>
 +
* <code>[[gitlab-runner verify]]</code>
 +
* <code>[[gitlab-runner status]]</code>
 +
* <code>[[gitlab-runner list]]</code> (Provides executor information Executor=docker|Executor=shell)
 +
* <code>[[gitlab-runner exec docker validate]]</code>
 +
* <code>[[gitlab-runner exec]] docker --docker-privileged $JOB</code>
 +
 
 +
== New ==
 +
* [[Credential Helpers]] [[GitLab Runner 12.0]] https://docs.gitlab.com/ee/ci/docker/using_docker_images.html#use-credential-helpers
  
 
== Activities ==
 
== Activities ==
# [[/Read GitLab Runner Changelog/]], approximately monthly releases: https://gitlab.com/gitlab-org/gitlab-runner/blob/master/CHANGELOG.md
+
# [[Install Gitlab runner]]
 +
# [[Read GitLab Runner Changelog]], approximately monthly releases: https://gitlab.com/gitlab-org/gitlab-runner/blob/master/CHANGELOG.md
 
# Read GitLab CI/CD Pipeline Configuration Reference:<code>.[[devOps/GitLab/gitlab-ci.yml|gitlab-ci.yml]]</code> https://docs.gitlab.com/ee/ci/yaml/
 
# Read GitLab CI/CD Pipeline Configuration Reference:<code>.[[devOps/GitLab/gitlab-ci.yml|gitlab-ci.yml]]</code> https://docs.gitlab.com/ee/ci/yaml/
# Read [[DevOps/GitLab/GitLab release notes|GitLab release notes]]
+
# Read [[GitLab release notes]]
 
# Learn differences between [[TeamCity|TeamCity Agents]] and [[DevOps/GitLab/GitLab Runner|Gitlab runners]]
 
# Learn differences between [[TeamCity|TeamCity Agents]] and [[DevOps/GitLab/GitLab Runner|Gitlab runners]]
 +
# Create a [[shared runner]] in <code>[[Admin area]] -> Overview -> runners</code>
 +
# Setup Autoscaling GitLab Runner on AWS EC2 ([[GitLab Runner Manager]])
 +
 +
== Related terms ==
 +
* [[TeamCity agents]]
 +
* <code>[[gitlab-runner --help]]</code>
 +
* [[CI/CD Runners]]
 +
* [[GitLab executors]]
 +
* [[There has been a runner system failure, please try again]]
 +
* [[GitHub runner]]
  
 
== See also ==
 
== See also ==
* [[Git]]
+
* {{gitlab-runner}}
* [[gitlab-ci.yml]] ([[Continuous Integration/Continuous Delivery (CI/CD)|CI/CD]] pipelines)
+
* {{gitlab runner}}
 +
* {{GitLab CI}}
  
[[Category:Cloud computing| ]]
+
[[Category:Gitlab]]
[[Category: Software development]]
 
[[Category:Server administration]]
 

Latest revision as of 07:42, 9 February 2023

GitLab Runner[1] released in January 2015[2] and written in Go offers continuous integration in GitLab, it is used to run your CI/CD jobs and send the results back to GitLab.


Configuration allows to define

Configuration[edit]

/etc/gitlab-runner/config.toml. Read https://docs.gitlab.com/runner/configuration/advanced-configuration.html

Known problems: shell executor doesn't clean up build directories [3]

Commands[edit]

Full command list: https://docs.gitlab.com/runner/commands/

New[edit]

Activities[edit]

  1. Install Gitlab runner
  2. Read GitLab Runner Changelog, approximately monthly releases: https://gitlab.com/gitlab-org/gitlab-runner/blob/master/CHANGELOG.md
  3. Read GitLab CI/CD Pipeline Configuration Reference:.gitlab-ci.yml https://docs.gitlab.com/ee/ci/yaml/
  4. Read GitLab release notes
  5. Learn differences between TeamCity Agents and Gitlab runners
  6. Create a shared runner in Admin area -> Overview -> runners
  7. Setup Autoscaling GitLab Runner on AWS EC2 (GitLab Runner Manager)

Related terms[edit]

See also[edit]

  • https://docs.gitlab.com/runner/
  • https://gitlab.com/gitlab-org/gitlab-runner/commit/6f1b10ef6d72de4afc0937ca9337b41be543d64c
  • https://gitlab.com/gitlab-org/gitlab-runner/issues/3856#note_127887227
  • Advertising: