본문 바로가기
Linux/Ubuntu

우분투 Docker GItlab-runner 설치

by 이도현 2022. 2. 7.

 

https://docs.gitlab.com/runner/

 

GitLab Runner | GitLab

Documentation for GitLab Community Edition, GitLab Enterprise Edition, Omnibus GitLab, and GitLab Runner.

docs.gitlab.com

 

 

설치

https://docs.gitlab.com/runner/install/docker.html

 

Run GitLab Runner in a container | GitLab

Documentation for GitLab Community Edition, GitLab Enterprise Edition, Omnibus GitLab, and GitLab Runner.

docs.gitlab.com

 

 

등록

https://docs.gitlab.com/runner/register/index.html

 

Registering runners | GitLab

Documentation for GitLab Community Edition, GitLab Enterprise Edition, Omnibus GitLab, and GitLab Runner.

docs.gitlab.com

도커 볼륨 생성

docker volume create gitlab-runner-config

도커 이미지 올리기

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

등록

docker run --rm -it -v gitlab-runner-config:/etc/gitlab-runner gitlab/gitlab-runner:latest register

 

 

 

 

또 다른 참조

https://workshop.infograb.io/setup-gitlab/4_setup_gitlab_runner/4_configure_gitlab_runner/

 

GitLab Runner 구성 - Setup CI/CD System with GitLab

GitLab Runner 구성 GitLab Runner 및 등록된 개별 Runner의 동작을 변경할 수 있습니다. GitLab Runner의 구성을 변경하려면 config.toml 파일을 수정해야 합니다. 대부분의 옵션을 변경할 때 GitLab Runner를 다시

workshop.infograb.io