Install GitLab CE on CentOS 7

오픈소스 버전 관리 시스템 GitLab CE 설치 가이드

GitLab CE 는 버전 관리(형상 관리) 시스템으로 유명한 GIT 을 편리하게 사용할 수 있게 해주는 데브옵스 툴 중의 하나인 GitLab 의 오픈소스 커뮤니티 에디션 입니다. 기본적인 인터페이스는 마치 Github 와 비슷하며 설치형이기 때문에 Private 하게 소스 관리를 하기 위한 기업들에서 많이 사용합니다. 최근에는 형상 관리 뿐 아니라 다양한 많은 기능들이 계속 추가되고 있습니다.

이 가이드는 Download and install GitLab | GitLab 를 참고하였습니다.

의존성 패키지 설치

[root@172-16-11-4 /]# yum install -y curl openssh-server postfix cronie

postfix systemd 등록 및 시작

[root@172-16-11-4 /]# systemctl enable postfix
[root@172-16-11-4 /]# systemctl start postfix

방화벽 오픈

[root@172-16-11-4 /]# lokkit -s http -s ssh

설치

[root@172-16-11-4 /]# curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
[root@172-16-11-4 /]# yum install -y gitlab-ce

설정 파일 수정 (많은 옵션이 있으나 아래 값들은 자신의 환경에 맞게 필수로 수정해 주셔야 합니다.)
: vi /etc/gitlab/gitlab.rb

external_url = 'http://git.umount.local'
gitlab_rails['time_zone'] = 'Asia/Seoul'
gitlab_rails['gitlab_email_enabled'] = true
gitlab_rails['gitlab_email_from'] = 'git@umount.net'
gitlab_rails['gitlab_email_display_name'] = 'umount-GIT'
gitlab_rails['gitlab_email_reply_to'] = 'noreply@umount.net'
gitlab_rails['gitlab_email_subject_suffix'] = '[git]'
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "localhost"

수정사항 반영

[root@172-16-11-4 /]# gitlab-ctl reconfigure

시작

[root@172-16-11-4 /]# gitlab-ctl start

중지

[root@172-16-11-4 /]# gitlab-ctl stop

브라우저에서 확인

gitlab-install

You may also like...

Subscribe
Notify of
guest

이 사이트는 스팸을 줄이는 아키스밋을 사용합니다. 댓글이 어떻게 처리되는지 알아보십시오.

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x