본문으로 바로가기

[gitLab] ubuntu 20.04에 gitLab-ce 설치하기 -1-

category CI & CD/git 2021. 4. 28. 13:41

안녕하세요 안젤라😇입니다

오늘은 아주옛날옛적에 깔았던 gitLab-ce 버전(무려 10.XX버전)을 새롭게 탈바꿈하려고 해요!
과연 제 생각대로 제대로 될지는 모르겠으나 도전해보겠습니다.

sudp apt update
sudo apt upgrade -y
sudo apt-get install -y curl openssh-server ca-certificates

우선은 이렇게 기초작업을 해줍니다.

curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo EXTERNAL_URL="http://gitlab.example.com/" apt-get install gitlab-ce

여기까지 하고나면

Running handlers:
Running handlers complete
Chef Infra Client finished, 585/1555 resources updated in 03 minutes 57 seconds

Notes:
It seems you haven't specified an initial root password while configuring the GitLab instance.
On your first visit to  your GitLab instance, you will be presented with a screen to set a
password for the default admin account with username `root`.

gitlab Reconfigured!

       *.                  *.
      ***                 ***
     *****               *****
    .******             *******
    ********            ********
   ,,,,,,,,,***********,,,,,,,,,
  ,,,,,,,,,,,*********,,,,,,,,,,,
  .,,,,,,,,,,,*******,,,,,,,,,,,,
      ,,,,,,,,,*****,,,,,,,,,.
         ,,,,,,,****,,,,,,
            .,,,***,,,,
                ,*,.



     _______ __  __          __
    / ____(_) /_/ /   ____ _/ /_
   / / __/ / __/ /   / __ `/ __ \
  / /_/ / / /_/ /___/ /_/ / /_/ /
  \____/_/\__/_____/\__,_/_.___/


Thank you for installing GitLab!
GitLab should be available at http://gitlab.example.com/

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=13-11

 

 

이런 gitLab-ce의 시그니처 여우가 있는 귀여운🤔 화면을 볼 수 있습니다. 

ubuntu@ip-172-31-26-17:~$ ls -al /etc/gitlab/
total 152
drwxrwxr-x  3 root root   4096 Apr 28 04:21 .
drwxr-xr-x 99 root root   4096 Apr 28 04:23 ..
-rw-------  1 root root  19021 Apr 28 04:24 gitlab-secrets.json
-rw-------  1 root root 122755 Apr 28 04:21 gitlab.rb
drwxr-xr-x  2 root root   4096 Apr 28 04:21 trusted-certs

/etc/gitlab 폴더가 생기면서 gitlab.rb라는 설정파일이 생기는데 이 파일안에서 접속 url:port를 설정해줄 수 있어요

vi /etc/gitlab/gitlab.rb
external_url 'http://원하는IP:8090'

이렇게 설정하고 설정을 적용해 주기위해서 재시작을 합니다.

sudo gitlab-ctl reconfigure

자, 이제 모두 설정되었다면
설정한 url:port로 접속을 해보아요.

짠 이제 우리는 👶최신의👶 gitLab을 사용할 수 있게 되었어요!
다음엔 이전의 gitLab데이터를 옮기는 방법으로 찾아뵙도록 할게요 안녕🖐🖐🖐