centos 7 환경으로
docker gitlab runner install 설치 방법
우선
# yum upgrade -y
재부팅
repo 다운
# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
# yum install docker-re
# service docker start
# chkconfig docker on
# service firewalld stop(나중에 방화벽 설정은 알아서..)
# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
뜨면 정상적으로 docker 구동 완료
gitlab 다운
# docker pull gitlab/gitlab-ce
Using default tag: latest
latest: Pulling from gitlab/gitlab-ce
be8ec4e48d7f: Pull complete
33b8b485aff0: Pull complete
d887158cc58c: Pull complete
05895bb28c18: Pull complete
d087767c5809: Pull complete
c284fd34cd1f: Pull complete
014593a9c3e6: Pull complete
29e764d94999: Pull complete
5a49ddc0561a: Pull complete
3180f7b26cb7: Pull complete
Digest: sha256:043914aedb3c155a3d0743a85125fb1407022efd834ac6f2a97f27f9948b669e
Status: Downloaded newer image for gitlab/gitlab-ce:latest
docker.io/gitlab/gitlab-ce:latest


import project 클릭
Repo by URL 클릭
URL 에다가
https://github.com/do-community/hello_hapi.git
do-community/hello_hapi
Solution for Exercise 1 of Exercises For Programmers using Hapi and Lab for tests - do-community/hello_hapi
github.com
입력 및 프로젝트 생성
예제 프로젝트가 생성 된다.
이제 테스트로 파일 하나 생성 해보자.
파일 생성 해서 올리자.
pipeline 에 가보면 pending 되어 있다 pending 을 눌러보자
install_dependencies - pending 을 눌러보자
pending 된 이유가 있다. runner 를 구동해주자.
우선 register 를 먼저 등록을 해주자.
runner 정보는
Project - setting - CI / CD 클릭
정보가 있다.
# docker run --rm -it -v /work/gitlab-runner/config:/etc/gitlab-runner gitlab/gitlab-runner register
URL : 사이트 주소 입력
token : 위 사이트에 보이는 token 입력
description : 엔터 혹은 알아서 입력
tags : 엔터 혹은 알아서 입력
executor : docker
default docker image : alpine:latest
를 입력 하면
runner 생성 된다.
CI / CD pipelines 들어가보면
running 으로 변경 되어있고.
다 끝나면 passed 로 뜬다.
정상적으로 작동이 안될때는 SSL 미 적용 상태에서 테스트 해보자.
'Linux' 카테고리의 다른 글
svn url 주소 관련 (0) | 2021.01.25 |
---|---|
Error while parsing config file: /work/passwd: 1: Section header expected (0) | 2021.01.22 |
httpd 2.4.6 이상 업그레이드 하기 centos7 (0) | 2021.01.15 |
intel raid web console 메일 알람 설정 (0) | 2021.01.15 |
gitlab status=couldn't execute POST against Post x509: certificate signed by unknown authority (0) | 2021.01.13 |