2024. 2. 20. 11:05ㆍ버전관리 및 빌드
$ netstat -t | grep ESTABLISH
GitLab 설치 매뉴얼 (참고) :
Download and install GitLab
Download, install and maintain your own GitLab instance with various installation packages and downloads for Linux, Kubernetes, Docker, Google Cloud and more.
about.gitlab.com
설치하기
위 문서를 통해 certification 관련 기본 패키지 설치 후 다음을 설치한다. deb 패키지 기준.
gitlab-ee
gitlab-cli
$ sudo aptitude install gitlab-ee gitlab-cli
---
(실행결과)
The following NEW packages will be installed:
gitlab-cli gitlab-ee python3-gitlab{a} python3-requests-toolbelt{a}
0 packages upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,224 MB of archives. After unpacking 3,499 MB will be used.
Do you want to continue? [Y/n/?]
Get: 1 http://deb.debian.org/debian bookworm/main amd64 python3-requests-toolbelt all 0.10.1-1 [41.3 kB]
Get: 2 http://deb.debian.org/debian bookworm/main amd64 python3-gitlab all 1:3.12.0-1 [67.6 kB]
Get: 3 http://deb.debian.org/debian bookworm/main amd64 gitlab-cli all 1:3.12.0-1 [4,260 B]
Get: 4 https://packages.gitlab.com/gitlab/gitlab-ee/debian bookworm/main amd64 gitlab-ee amd64 16.9.0-ee.0 [1,224 MB]
Fetched 1,224 MB in 1분 14초 (16.5 MB/s)
Selecting previously unselected package python3-requests-toolbelt.
(데이터베이스 읽는중 ...현재 114744개의 파일과 디렉터리가 설치되어 있습니다.)
Preparing to unpack .../python3-requests-toolbelt_0.10.1-1_all.deb ...
Unpacking python3-requests-toolbelt (0.10.1-1) ...
Selecting previously unselected package python3-gitlab.
Preparing to unpack .../python3-gitlab_1%3a3.12.0-1_all.deb ...
Unpacking python3-gitlab (1:3.12.0-1) ...
Selecting previously unselected package gitlab-cli.
Preparing to unpack .../gitlab-cli_1%3a3.12.0-1_all.deb ...
Unpacking gitlab-cli (1:3.12.0-1) ...
Selecting previously unselected package gitlab-ee.
Preparing to unpack .../gitlab-ee_16.9.0-ee.0_amd64.deb ...
Unpacking gitlab-ee (16.9.0-ee.0) ...
python3-requests-toolbelt (0.10.1-1) 설정하는 중입니다 ...
gitlab-ee (16.9.0-ee.0) 설정하는 중입니다 ...
It looks like GitLab has not been configured yet; skipping the upgrade script.
*. *.
*** ***
***** *****
.****** *******
******** ********
,,,,,,,,,***********,,,,,,,,,
,,,,,,,,,,,*********,,,,,,,,,,,
.,,,,,,,,,,,*******,,,,,,,,,,,,
,,,,,,,,,*****,,,,,,,,,.
,,,,,,,****,,,,,,
.,,,***,,,,
,*,.
_______ __ __ __
/ ____(_) /_/ / ____ _/ /_
/ / __/ / __/ / / __ `/ __ \
/ /_/ / / /_/ /___/ /_/ / /_/ /
\____/_/\__/_____/\__,_/_.___/
Thank you for installing GitLab!
GitLab was unable to detect a valid hostname for your instance.
Please configure a URL for your GitLab instance by setting `external_url`
configuration in /etc/gitlab/gitlab.rb file.
Then, you can start your GitLab instance by running the following command:
sudo gitlab-ctl reconfigure
For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
Help us improve the installation experience, let us know how we did with a 1 minute survey:
https://gitlab.fra1.qualtrics.com/jfe/form/SV_6kVqZANThUQ1bZb?installation=omnibus&release=16-9
python3-gitlab (1:3.12.0-1) 설정하는 중입니다 ...
gitlab-cli (1:3.12.0-1) 설정하는 중입니다 ...
Processing triggers for man-db (2.11.2-2) ...
Deleting downloaded files
요렇게 gitlab-ee 만 설치하면 시스템이 동작하는 줄 알았다. 내 말은 localhost 로 접속이 될 줄 알았다는 의미였다.
대부분의 데비안 서비스는 설치 후 바로 시동되니까. 포트번호를 급히 찾으려고 애를 썼다.
netstat -t | grep ESTABLISH
gitlab-ee 을 처음 설치한 후에 /etc/gitlab/ 에 들어가면 gitlab.rb 만 있다.
외부 시스템에서 접속할 때 필요한 URL 을 설정해야 한다. external_url (초기값은 주석처리 되어 있다)

로컬 호스트에서 테스트만 할 거라서 내 경우는 http://127.0.0.1 로 정했다. 포트설정은? 음...
external_url 'http://127.0.0.1'
gitlab.rb 설정을 마친 후에는 변경된 내용을 다시 읽어들이기 위해서 재시작을 해주어야 한다.
$ sudo gitlab-ctl reconfigure
눈으로 쫓아가기에는 너무나도 많은 양의 로그가 라면면발처럼 주루룩 올라간다.
[2024-02-20T15:14:53+09:00] INFO: Cinc Client Run complete in 4.332968725 seconds
Running handlers:
[2024-02-20T15:14:53+09:00] INFO: Running report handlers
Running handlers complete
[2024-02-20T15:14:53+09:00] INFO: Report handlers complete
Infra Phase complete, 0/674 resources updated in 05 seconds
gitlab Reconfigured!
마지막 줄에 gitlab Reconfigured! 가 출력된다.
웹브라우저로 접속하기
위에서 설정한 external_url 으로 접속한다. (예: 127.0.0.1)

기본 관리자 계정은 root 이고 패스워드는 /etc/gitlab/initial_root_password 파일에 들어 있다. 저절로 생성되는 파일인듯하다.
