7/20/2023 0 Comments How to install gitlab on aws![]() Delete earlier created (manually) docker-machine:ġ0. Restart GitLab runner service and verify runner is registered properly and showing online: gitlab-runner stop gitlab-runner start gitlab-runner verifyĩ. We will show you how to install GitLab with the use of the Omnibus Installer for an architecture of 1000 users. Note the Access key ID and Secret access key. Go to Security credentials > Create a new access key. After you set up authentication, you can configure CI/CD to deploy. ![]() Update concurrency value in '/etc/gitlab-runner/config.toml' for auto scaling:Ĩ. To use GitLab CI/CD to connect to AWS, you must authenticate. We need to provide GitLab URL, Registration token, docker image and runner tags for successful registration.ħ. Create config template (ex TEMPLATE_FILE='/home/ubuntu/config.toml' ) # Create config.toml template file cat $TEMPLATE_FILE ] limit = 20 privileged = true disable_cache = true IdleCount = $ Install GitLab Runner on the server: curl -L -output /usr/local/bin/gitlab-runner "" chmod +x /usr/local/bin/gitlab-runner useradd -comment 'GitLab Runner' -create-home gitlab-runner -shell /bin/bash gitlab-runner install -user=gitlab-runner -working-directory=/home/gitlab-runner rm -f /home/gitlab-runner/.bash_logoutĥ. This above step is required or else we may get this following error message during docker-machine creation after runner registration:ĮRROR: Error creating machine: Error checking the host: Error checking and/or regenerating the certs: There was an error validating certificates for hostĤ. Create an instance using docker-machine: docker-machine create -driver amazonec2 -amazonec2-region -amazonec2-vpc-id -amazonec2-subnet-id -amazonec2-zone -amazonec2-ami -amazonec2-instance-type -amazonec2-private-address-only Press Allocate, and you’ll receive a confirmation message: With the new IP Address selected, click Actions, and then Associate address. Install Docker Machine on the server: base= & curl -L $base/docker-machine-$(uname -s)-$(uname -m) >/tmp/docker-machine & mv /tmp/docker-machine /usr/local/bin/docker-machine & chmod +x /usr/local/bin/docker-machineģ. Go to Services in the top, and click EC2 to bring you to the main EC2 page. Update Ubuntu server and Install Docker:Īpt-get -y update apt-get -y install apt-transport-https ca-certificates curl gnupg lsb-release curl -fsSL | gpg -dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg echo "deb $(lsb_release -cs) stable" | tee /etc/apt//docker.list > /dev/null apt-get -y update apt-get -y install docker-ce docker-ce-cli containerd.ioĢ.
0 Comments
Leave a Reply. |