설치환경 : Ubuntu 14.05LTS


GitLab은 private github이라고 보면 된다.

보통 회사나 연구실 등에서 private repository를 가지고 싶을때 주로 사용한다.


내가 근무하고있는 연구실은 Fedora 기반 서버와 Ubuntu 서버가 있지만, GitLab에서 Fedora를 서포트하지 않기 때문에

Ubuntu로 설치를 하였다.


1. 관련 패키지 설치

 $sudo apt-get install curl openssh-server ca-certificates postfix


2. GitLab 패키지 서버 추가 및 패키지 설치

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

$sudo apt-get install gitlab-ce


만약 설치 되지 않을 경우 아래 명령어를 입력한다.

$curl -LJO https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/trusty/gitlab-ce-XXX.deb/download

$dpkg -i gitlab-ce-XXX.deb 


4. GitLab 설정 및 시작

sudo gitlab-ctl reconfigure 



다른버전은 홈페이지에서 설치해야 한다.

우분투의 경우 12.04, 14.05(15버전), 16.04 버전이 따로 있기 때문에 설치방법이 각각 다르다.

다른 리눅스 배포판의 경우도 다르기 때문에 사이트(https://about.gitlab.com/downloads/)에서 설치방법을 따라야한다.



참고 사이트

https://about.gitlab.com/downloads/#ubuntu1404

+ Recent posts