Gitlab CI/CD 설정과 .gitlab-ci.yml 작성 step 2

지난 글에 이어 Gitlab CI/CD 활용 방법을 포스팅 하겠습니다. https://vlee.kr/5033 지난 글에서는 Gitlab에 구성된 gitlab-runner를 이용해서 간단한 script 동작을 수행해보았습니다. 여러 stage에 걸쳐 파이프라인이 동작하는 걸 확인했는데요. 이번 포스트에서는 개발하면서…

0 Comments

Gitlab CI/CD 설정과 .gitlab-ci.yml 작성

Gitlab Registry 설정 gitlab registry는 build한 docker image를 업로드하기 위한 저장소입니다. 기본 Gitlab 패키지에 포함되어 있어 별도의 설치는 필요 없으나 본인 웹서버 환경에 맞게 설정이 필요합니다. 저는 Nginx를 웹서버로 쓰고…

0 Comments

Gitlab runner 설치와 실행 방법(with Ubuntu)

다운로드 아래 명령을 이용해서 다운로드 할 것인데 ${arch} 부분을 본인 환경에 맞게 수정해주어야 한다. 필자의 경우 amd64이므로 amd64를 입력했다. curl -LJO "https://gitlab-runner-downloads.s3.amazonaws.com/latest/deb/gitlab-runner_${arch}.deb" curl -LJO "https://gitlab-runner-downloads.s3.amazonaws.com/latest/deb/gitlab-runner_amd64.deb" 설치 다운로드가 완료되면 gitlab-runner_amd64.deb 파일이…

0 Comments

gitlab registry push unknown blob 에러

gitlab의 registry에 빌드한 docker image를 push하려는데 아래와 같은 오류가 발생했다. $ docker push registry.example.com/test/image Using default tag: latest The push refers to repository [registry.example.com/test/image] 68062ef20672: Pushing 32.91MB/32.91MB c1be1566dcab: Pushing 87.04kB…

0 Comments

Install Gitlab with Nginx(not bundle) on Ubuntu 18.04

의존 패키지 설치 sudo apt-get update sudo apt-get install -y curl openssh-server ca-certificates tzdata perl gitlab-ee package repository 추가 gitlab의 최신 버전을 설치하기 위해 repository를 추가합니다. curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo…

0 Comments

gitlab https push/pull 할 때 오류

repository에 있는 프로젝트를 push 또는 pull 할 때 502 오류가 발생하는 경우 /etc/gitlab/gitlab.rb에서 puma 설정을 true로 변경한다. puma['enable'] = true 변경된 설정을 적용하기 위해 reconfigure를 해준다. sudo gitlab-ctl reconfigure 참고…

0 Comments

gitlab we’re sorry, but something went wrong

gitlab 설치 후 웹페이지에 접속했는데 아래와 같은 페이지가 보였습니다. 상세한 error를 확인하려는 경우 로그를 확인하라는 메시지가 나옵니다. 필자는 nginx로 gitlab을 설정했기 때문에 nginx 로그를 확인했습니다. 로그 위치 : /var/log/nginx/error.log […

0 Comments