Gitlab Setup Guide for Ubuntu

의존성 설치

sudo apt-get update
sudo apt-get install -y curl openssh-server ca-certificates tzdata perl

SMTP 설치

sudo apt-get install -y postfix

Internet Site 선택

GitLab 패키지 저장소 등록

curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash

GitLab 설치

sudo EXTERNAL_URL="http://localhost:8081" apt-get install gitlab-ee

Port 설정

external_url 'http://localhost:8081'
unicorn['port'] = 8081 /etc/gitlab/gitlab.rb 파일에서 위와 같이 수정한다.

GitLab Start/Stop/Restart

sudo gitlab-ctl start
sudo gitlab-ctl stop
sudo gitlab-ctl restart

GitLab 재설정

sudo gitlab-ctl reconfigure