poysexy.blogg.se

How to install gitlab runner on ec2 instance
How to install gitlab runner on ec2 instance





  1. How to install gitlab runner on ec2 instance how to#
  2. How to install gitlab runner on ec2 instance update#

mkdir -p /srv/gitlab-runner & touch /srv/gitlab-runner/config.toml.docker run -d -name gitlab-runner-dind -privileged -restart always -network gitlab-runner-network -v /var/lib/docker docker:18.06.3-ce-dind -storage-driver=overlay2.

how to install gitlab runner on ec2 instance

systemctl enable docker, restart servicesĬonfirm overlay with lsmod | grep overlayĬreate /etc/docker/daemon.json with ĭocker network create gitlab-runner-network.groupadd docker (should already exists) & usermod -aG docker ubuntu.

How to install gitlab runner on ec2 instance update#

  • apt-get update & apt-get install -yqq docker-ce docker-ce-cli containerd.io.
  • add-apt-repository "deb bionic stable".
  • apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common.
  • Here are the configuration steps I took, some PII was changed. Testing this when the runner was on the EC2 instance instead of being inside a Docker container did not have this problem.

    How to install gitlab runner on ec2 instance how to#

    I'm a bit stuck at this point and don't really know how to get the runner to be able to properly checkout / pull our Gitlab repo code into the job workspace. Additionally, taking the string and using the runner's token I cannot clone the repo when I run the command locally, it complains "HTTP basic: Access Denied." However, whenever a checkout / pull occurs at the beginning of the job, the git procedure times out unable to reach the CI's repo. I was able to get through the setup and configuration, the runner is installed and registered to the CI. I've followed this documentation that is a bit dated, but goes through the steps of registering a Docker container on the runner that utilizes a Docker-in-Docker (DIND) image to spawn containers within itself to run our builds. The security groups between the two are pretty open, all TCP within the AWS /28 network both EC2 instances sit in, from our office and from our VPN devices are allowed inbound on both machines.

    how to install gitlab runner on ec2 instance how to install gitlab runner on ec2 instance

    They're both using the Ubuntu 18.04 LTS image and both have public/private IPv4 addresses. I'm creating a demo Gitlab environment using two AWS EC2 instances, one for the CI and one for the runner.







    How to install gitlab runner on ec2 instance