gitlab 설치 관련(이슈 및 형상관리 프로그램) 리눅스

[ gitlab 설치 ]

curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash


sudo EXTERNAL_URL=“192.168.0.10:80” 

yum install -y gitlab-ce

yum install -y  gitlab-ce-13.0.4-ce.0*


gitlab-ctl reconfigure

vi /etc/gitlab/gitlab.rb

gitlab-ctl reconfigure

gitlab-ctl stop / start / restart


[ gitlab 삭제 ]

gitlab-ctl uninstall 

gitlab-ctl cleanse 

gitlab-ctl remove-accounts 

yum -y remove gitlab-ce


[ gitlab 데이터 백업 ]

gitlab-rake gitlab:backup:create

/var/opt/gitlab/backups/1611051515_2021_01_19_13.0.4_gitlab_backup.tar


[ gitlab 데이터 복구 ]

gitlab-ctl stop unicorn

gitlab-ctl stop sidekiq

gitlab-rake gitlab:backup:restore BACKUP=1611051515_2021_01_19_13.0.4

gitlab-ctl start

gitlab-rake gitlab:check SANITIZE=true


yum --installroot=/opt/linux/ install bash

yum --installroot=/DATA/gitlab install gitlab-ce-13.0.4*


[ gitlab 에러 사항 ]

/var/log/gitlab/gitlab-rails/production.log


Gitlab 프로젝트 “설정”-> CI / CD 접속 시 500에러 발생 문제 해결


# gitlab-rails dbconsole -e production

gitlabhq_production=> UPDATE projects SET runners_token = null, runners_token_encrypted = null;

gitlabhq_production=> UPDATE namespaces SET runners_token = null, runners_token_encrypted = null;

gitlabhq_production=> UPDATE application_settings SET runners_registration_token_encrypted = null;

gitlabhq_production=> UPDATE ci_runners SET token = null, token_encrypted = null;


덧글

댓글 입력 영역