<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Add GitLab Runners on C2 Platform</title><link>https://c2platform.org/docs/howto/phx/gitlab/runner/</link><description>Recent content in Add GitLab Runners on C2 Platform</description><generator>Hugo</generator><language>en</language><atom:link href="https://c2platform.org/docs/howto/phx/gitlab/runner/index.xml" rel="self" type="application/rss+xml"/><item><title>Run GitLab Runner in a Docker Container</title><link>https://c2platform.org/docs/howto/phx/gitlab/runner/manual/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://c2platform.org/docs/howto/phx/gitlab/runner/manual/</guid><description>&lt;p>SSH into the container and become root:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>vagrant ssh pxd-runner1
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>We can see the GitLab Runner registered by Ansible, the one with docker
executor, by running command:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>gitlab-runner list
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
&lt;details style="margin-bottom:2rem;margin-top:-1.5rem">
 &lt;summary>
 &lt;kbd>
 
 
 Show me
 
 &lt;/kbd>
 &lt;/summary>
 &lt;div>
 &lt;div class="expand-html">
 &lt;div class="highlight">&lt;pre tabindex="0" style="color:#e5e5e5;background-color:#000;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>root@pxd-runner1:~# gitlab-runner list
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Runtime platform arch=amd64 os=linux pid=&lt;span style="color:#ff0;font-weight:bold">13752&lt;/span> revision=07e534ba version=18.9.0
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Listing configured runners ConfigFile=/etc/gitlab-runner/config.toml
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>pxd-runner1 Executor=docker Token=glrt-da-EkqfgDuB2DwnKLKEzwmc6MwpvOjEKdDoyCnU6MQ8.01.1715ibixv URL=https://gitlab.c2platform.org
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/div>
 &lt;/div>
&lt;/details>

&lt;h2 id="create-runner">Create Runner&lt;/h2>
&lt;p>Go to the Runners page



&lt;span class="copy-text">
 &lt;span>
 &lt;code class="copy-text">
 
 
 https://gitlab.c2platform.org/groups/c2platform/c2/-/runners
 
 &lt;/code>
 &lt;/span>
&lt;/span>

and create a new Runner.&lt;/p>
&lt;p>This will generate a registration token, for example:
&lt;code>glrt-wKo7f7cpkPHGTybhg8ybTmc6MwpvOjEKdDoyCnU6MQ8.01.170xmsrvn&lt;/code>.&lt;/p></description></item></channel></rss>