본문 바로가기
기타/Linux

[우분투] Ubuntu 20.04 Gitlab CE 설치하기

by makepluscode 2021. 10. 15.
반응형

우분투 Ubuntu 20.04 에 Gitlab CE 설치하기

우분투 Ubuntu 20.04 Gitlab CE 설치하기

Ubuntu 20.04 Gitlab CE 설치하기

우분투 20.04 에 설치형 형상관리 프로그램 Gitlab CE (Community Edition) 을 설치한다.

Gitlab CE 저장소 추가

curl 명령어를 이용하여 Gitlab CE 저장소를 우분투 패키지 시스템에 추가한다.

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

Gitlab CE 설치

우분투 패키지 시스템을 업데이트 하고, apt 명령어를 이용하여 gitlab-ce 패키지를 설치한다.

sudo apt update
sudo apt -y install gitlab-ce
Preparing to unpack .../gitlab-ce_14.3.3-ce.0_amd64.deb ...
Unpacking gitlab-ce (14.3.3-ce.0) ...
Setting up gitlab-ce (14.3.3-ce.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=14-3

Gitlab CE 설정

$ sudo gitlab-ctl reconfigure
...
Notes:
Default admin account has been configured with following details:
Username: root
Password: You didn't opt-in to print initial root password to STDOUT.
Password stored to /etc/gitlab/initial_root_password. This file will be cleaned up in first reconfigure run after 24 hours.

NOTE: Because these credentials might be present in your log files in plain text, it is highly recommended to reset the password following https://docs.gitlab.com/ee/security/reset_user_password.html#reset-your-root-password.

gitlab Reconfigured!

기본으로 80 port 를 사용하기 때문에, 웹브라우저로 설치된 Host 의 IP 에 접속하면 Gitlab 화면이 보인다. root 계정의 암호는 /etc/gitlab/initial_root_password 파일에 자동생성 되어있다. cat 으로 password 를 확인하여 첫번째 login 을 한다.

참고링크

 

 

https://computingforgeeks.com/how-to-install-gitlab-ce-on-ubuntu-linux/

반응형