content
"}},Qt={element:"span",mutate:function(e){e.setAttribute("style","display: -webkit-flex; display: -ms-flexbox; display: flex;"),e.innerHTML='hello'}},Yt={element:"form",mutate:function(e){e.setAttribute("tabindex",0),e.setAttribute("disabled","disabled")}},en={element:"a",mutate:function(e){return e.href="#void",e.innerHTML='content
",e.firstElementChild}},xn=function(e){if(!e.ownerSVGElement&&"svg"!==e.nodeName.toLowerCase())return!1;var t=s();e.appendChild(t);var n=t.querySelector("input");return n.focus(),n.disabled=!0,e.removeChild(t),!0},yn={element:"div",mutate:function(e){return e.innerHTML=c('Published on: June 30, 2021
4 min read
This is a quick quide to help you provision a GitLab instance in the AWS Marketplace and setup a Runner.
The provisioning takes a few minutes. Please wait before you start the next step.
Copy the private or public IP to your browser , depending on your VPC configuration.
Runner machines are the build agents that run the CI/CD jobs.
Requirements:
In order to setup the Runners and Docker engine, we need to connect to the GitLab machine we are running. This can be done via SSH from any command line, or directly via the AWS Console, depending on how your VPC is set. In our example we will use the AWS console - Connect feature to SSH into the machines.
WARNING: It is not a recommended best practice to install Runners on the same machine where the server is installed for security and performance reasons, but only for the sake of simplicity, in this blog we will install it on the same machine.
curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh
sudo curl -L --output /usr/local/bin/gitlab-runner "https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-386"
sudo chmod +x /usr/local/bin/gitlab-runner
sudo useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash
sudo gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner sudo gitlab-runner start
Run this command: sudo gitlab-runner register
.
You will be prompt to enter URL.
Open your GitLab instance, under CI/CD settings:
Click Settings, CI/CD.
Expand Runners.
Copy the URL to the clipboard under specific runner.
Paste the URL in the console.
Enter.
You will be prompt to enter registration token, copy it from the Runner settings.
In my next blog, I will show you how to create a project, configure the CI/CD, change your application code, and run a CI/CD pipeline.