GitLab-Runner Install

1) 도커 깃랩 러너 설치

docker run -d --name gitlab-runner --restart always -v C:\gitlab\gitlab-runner\config:/etc/gitlab-runner -v C:\gitlab\run\docker.sock:/var/run/docker.sock gitlab/gitlab-runner:latest

docker exec -it gitlab-runner gitlab-runner register

2) 우분투 깃랩 러너 설치

curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | sudo bash

sudo apt-get install –y curl openssh-server ca-certificates tzdata perl

sudo apt install gitlab-runner

▪ 러너 유효성 검사 및 실행

sudo gitlab-runner verify

sudo gitlab-runner start

▪ GitLab-runner 권한 부여

sudo usermod –aG root gitlab-runner

▪ Gitlab 삭제

sudo gitlab-ctl uninstall

sudo gitlab-ctl cleanse

sudo gitlab-ctl remove-accounts

sudo dpkg -P gitlab-ee || sudo yum -y remove gitlab-ee

sudo rm -rf /opt/gitlab

sudo rm -rf /var/opt/gitlab

sudo rm -rf /etc/gitlab

sudo rm -rf /var/log/gitlab

sudo rm -rf /etc/yum.repos.d/gitlab