티스토리 뷰
CLOUD/CICD
gitlab 설치 및 개발환경 구축 (Ubuntu 20.04, ce버전) 및 버전 확인, external ip 셋팅, 비밀번호
헐리 2021. 7. 6. 14:28sudo apt-get update
sudo apt-get install -y curl openssh-server ca-certificates tzdata perl
sudo apt-get install -y postfix
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo EXTERNAL_URL="https://gitlab.example.com" apt-get install gitlab-ce
https 프로토콜을 사용할 것이라서 letsencypt 관련 에러가 났다.
gitlab은 https를 사용하게되면 자동적으로 letsencrypt 에 요청한다
Running handlers:
There was an error running gitlab-ctl reconfigure:
(letsencrypt::http_authorization line 6) had an error: Acme::Client::Error::RejectedIdentifier: acme_certificate[staging] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/letsencrypt/resources/certificate.rb line 41) had an error: Acme::Client::Error::RejectedIdentifiThe ACME server can not issue a certificate for an IP address
에러 처리하기( 다음 포스팅 )
버전 확인
sudo gitlab-rake gitlab:env:info
External IP 셋팅
# vim /etc/gitlab/gitlab.rb
external_url "http://gitlab.example.com"
# sudo gitlab-ctl reconfigure
비밀번호
gitlab 설치시 다음과 같은 안내가 나오나,
Password stored to /etc/gitlab/initial_root_password. This file will be cleaned up in first reconfigure run after 24 hours
위의 방법대로 안되면
sudo gitlab-rake "gitlab:password:reset[root]"
로 비밀번호를 셋팅할 수 있다
'CLOUD > CICD' 카테고리의 다른 글
[CI/CD] GitLab CI/CD 구축하기(2) - helm 설치 Istio위에 Knative 구성 (0) | 2021.07.07 |
---|---|
[CI/CD] GitLab CI/CD 구축하기(1) - Gitlab Dashboard에서 GUI 환경으로 쿠버네티스 클러스터와 연동 (0) | 2021.07.07 |
[Gitlab] 원격저장소와 로컬컴퓨터 동기화하기 (0) | 2021.07.06 |
gitlab 삭제하는 명령어 및 관련 디렉토리 (0) | 2021.07.06 |
gitlab 설치시SSL configuration (Lets encrypt ::: The ACME server can not issue a certificate for an IP address) + CloudFlare (0) | 2021.07.06 |