์ค์น ํ๊ฒฝ
์ฐธ๊ณ : https://docs.gitlab.com/ee/install/requirements.html
- GitLab : gitlab-ce-15.6.7-ce.0.el8.x86_64.rpm
- OS : CentOS 8 (230125 ver)
- ETC : 8GB RAM(8GB RAM ↑), 4Core CPU(2Core CPU ↑), 50GB Disk
Installation system requirements | GitLab
Documentation for GitLab Community Edition, GitLab Enterprise Edition, Omnibus GitLab, and GitLab Runner.
docs.gitlab.com
์ฌ์ ์ค๋น
์ฐธ๊ณ : https://about.gitlab.com/install/#centos-8
Official Linux package > CentOS > View install instructions +
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
1. Install and configure the necessary dependencies
$ sudo yum install -y curl policycoreutils openssh-server
$ # Enable OpenSSH server daemon if not enabled: sudo systemctl status sshd
$ sudo systemctl enable sshd
$ sudo systemctl start sshd
$ # Check if opening the firewall is needed with: sudo systemctl status firewalld
$ sudo firewall-cmd --permanent --add-service=http
$ sudo firewall-cmd --permanent --add-service=https
$ sudo systemctl reload firewalld
$ # ์ค์น ์ค๋ฅ ๋ฐ์ํ์ฌ ์๋ ํจํค์ง ์ถ๊ฐ ์ค์น
$ sudo yum install -y perl
$ sudo yum install -y policycoreutils-python-utils
$ sudo yum install postfix
$ sudo systemctl enable postfix
$ sudo systemctl start postfix
2. Add the GitLab package repository and install the package
์ฌ๊ธฐ์๋ถํฐ๋ ํํ์ด์ง์ ๋ด์ฉ์ ๋ฐ๋ผํ์ง ์๊ณ rpm ๋ช ๋ น์ผ๋ก GitLab ๋ฐ์ด๋๋ฆฌ๋ฅผ ์ค์นํ๋ค.
- GitLab ๋ฐ์ด๋๋ฆฌ : https://packages.gitlab.com/gitlab/gitlab-ce?page=1

$ # $USER_HOME/gitlab/ ์๋์ gitlab ๋ฐ์ด๋๋ฆฌ rpm ํ์ผ์ ๋ฃ์ ํ
$ sudo rpm -ivh gitlab-ce-15.6.7-ce.0.el8.x86_64.rpm
$ # ํจํค์ง ์ค์น ๋๋ ์ข
์์ฑ ์ค๋ฅ ๋ฐ์์ yum ๋๊ตฌ ์ฌ์ฉํ์ฌ ์ถ๊ฐ ์ค์นํด์ผ ํจ

๊ฒฝ๊ณ : gitlab-ce-15.6.7-ce.0.el8.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID f27eab47: NOKEY
Verifying... ################################# [100%]
์ค๋น ์ค... ################################# [100%]
Updating / installing...
1:gitlab-ce-15.6.7-ce.0.el8 ################################# [100%]
[2023-02-10T14:07:24+09:00] WARN: Please install an English UTF-8 locale for Cinc Client to use, falling back to C locale and disabling UTF-8 support.
It looks like there was a problem with public attributes; run gitlab-ctl reconfigure manually to fix.
๊ฒฝ๊ณ : %posttrans(gitlab-ce-15.6.7-ce.0.el8.x86_64) scriptlet failed, exit status 1

3~. ์ค์ ํ์ผ ์ธํ
/etc/gitlab/gitlab.rb ํ์ผ์ external_url ๊ฐ ์์ - vi ํธ์ง๊ธฐ๋ก ํ์ผ ์ด์ด GitLab URL ๋ถ๋ถ ์ฐพ๊ธฐ

์์ ํ ์ค์ ํ์ผ ์ ์ฉ - ์ต์ด ์คํ์ ์๊ฐ์ด ๋ค์ ์์๋จ. ์๋ฃ๋๋ฉด gitlab Reconfigured! ๋ฉ์์ง ์ถ๋ ฅ
$ sudo gitlab-ctl reconfigure
GitLab ๊ธฐ๋ (root ๊ถํ ํ์)
$ gitlab-ctl start

Gitlab URL๋์ ์์ฑํ ์ฃผ์(http://localhost:9876/users/sign_in)๋ก ์น ์ ์

root ๊ณ์ ๋น๋ฐ๋ฒํธ ํ๋ (ํ์๊ฐ์ ํ ์ผ๋ฐ ์ฌ์ฉ์๋ ๊ถํ์ด ์์ด ๋ก๊ทธ์ธ ๋ถ๊ฐ)
/etc/gitlab/ ์๋์ initial_root_password ํ์ผ ๋ด์ ์กด์ฌ [์ต์ด ๊ธฐ๋ ํ 24์๊ฐ ๋ค ํ์ผ ์๋ ์ญ์ ]

Webhook ์ค์ ์ถ๊ฐ
GitLab ์นํ์ด์ง ์ ์ > Menu > Admin > Admin Area > Settings > Network > Outbound requests > Expand
Allow requests to the local network from web hooks and services ์ฒดํฌ ํ Save changes
User ์์ฑ
GitLab ์นํ์ด์ง ์ ์ > Menu > Admin > Admin Area > Overview > Users
New user > ์ ๋ณด ๊ธฐ์ ํ Create User
User ๋ด Password ์์ฑ
GitLab ์นํ์ด์ง ์ ์ > Menu > Admin > Admin Area > Overview > Users
์ํ๋ ์ ์ ์ ํ ํ Edit > Password, Password confirmation ์ ๋ ฅ ํ Save changes
Group ์์ฑ
GitLab ์นํ์ด์ง ์ ์ > Menu > Admin > Admin Area > Overview > Groups
New group > ์ ๋ณด ๊ธฐ์ ํ Create group
Group ๋ด User ์ถ๊ฐ
GitLab ์นํ์ด์ง ์ ์ > Menu > Admin > Admin Area > Overview > Groups
Group ์ด๋ฆ ์ ํ > Add user(s) to the group์์ ์ ์ ์ถ๊ฐ
Project ์์ฑ
GitLab ์นํ์ด์ง ์ ์ > Menu > Admin > Admin Area > Overview > Projects > New Project > Create blank project
Project name, URL, slug ์ ๋ณด ๊ธฐ์ ํ Create project
GitLab ์ข ๋ฃ
$ gitlab-ctl stop
GitLab ์ญ์
์๋ ๋ช ๋ น ์ํ ํ /opt/gitlab, /var/opt/gitlab, /etc/gitlab, /var/log/gitlab, /etc/yum.repos.d/gitlab ๊ด๋ จํ์ผ ์ญ์
$ sudo gitlab-ctl uninstall
$ sudo gitlab-ctl cleanse
$ sudo gitlab-ctl remove-accounts
$ sudo dpkg -P gitlab-ce || sudo yum -y remove gitlab-ce
'๐ฌ CI ยท CD > Git : ๊น' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
| [Git] cmd command๋ก git ์ด์ฉํ๊ธฐ (0) | 2025.02.05 |
|---|---|
| [Github] VSCode์์ Github๋ก Commit, Pushํ๊ธฐ (0) | 2024.08.30 |
| [GitLab] CentOS 7์ GitLab (ce) ์ค์นํ๊ธฐ - ์คํ๋ผ์ธ(์๋) ์ค์น (0) | 2023.04.11 |
| [GitLab] CentOS 7์ GitLab (ce) ์ค์นํ๊ธฐ - curl/yum ์ด์ฉํ ์จ๋ผ์ธ ์ค์น (0) | 2023.04.10 |
| [E] Github Unable to push - fatal: protocol 'https' is not supported (0) | 2022.10.14 |