๋ชฉ์ฐจ

GitLab ์ค์น๊ณผ์
#GitLab์ CentOS์ฉ RPM ์ ์ฅ์ ์ค์นํ๊ธฐ ์ํ ์คํฌ๋ฆฝํธ ๋ค์ด๋ก๋ ๋ฐ ์คํ
curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
#gitlab ์ปค๋ฎค๋ํฐ๋ฒ์ ์ค์น
sudo yum install -y gitlab-ce
์ธ๋ถ ์ ์ url ๋ณ๊ฒฝ
#gitlab์ค์ ํ์ผ ์ฐ๋ค.
sudo vi /etc/gitlab/gitlab.rb
gitlab ์ค์ ํ์ผ์ ์ด์ด์ external_url์ ์ธ๋ถ์์ ์ ์ํ url๋ก ๋ณ๊ฒฝํ๋ค.
๊ธฐ๋ณธ 80๋ฅผ ์ฌ์ฉํ๋๊น ๋ณ๊ฒฝํ๊ณ ์ถ์ผ๋ฉด url:ํฌํธ๋ก ๋ณ๊ฒฝํ๋ค.

์ธ๋ถ์ ์ url ํฌํธ ๋ฐฉํ๋ฒฝ ํ์ฉ
#๋ฐฉํ๋ฒฝ์ ํฌํธ ํ์ฉ
sudo firewall-cmd --permanent --add-port=ํ์ฉํ port/tcp
#๋ฐฉํ๋ฒฝ ๋ฆฌ๋ก๋
sudo firewall-cmd --reload
๋ฐฉํ๋ฒฝ ํ์ฉ ๋ชฉ๋ก์ ํฌํธ๊ฐ ํฌํจ ๋์๋์ง ํ์ธ
#๋ฐฉํ๋ฒฝ ๋ชฉ๋ก
sudo firewall-cmd --list-all

#gitlab ์ค์ ํ์ผ ์ ์ฉ(์๊ฐ์ด ์ข ๊ฑธ๋ฆฐ๋ค.)
sudo gitlab-ctl reconfigure
์ธ๋ถ ์ ์ ํ์ธ

๊ตฌ๊ธ๋ง ํด๋ณด๋ฉด ์ด ๋ ๋น๋ฐ๋ฒํธ๋ฅผ ๋ณ๊ฒฝํ๋ผ๊ณ ๋์จ๋ค๋๋ฐ ๋ด ๊ฒฝ์ฐ๋ ๋์ค์ง ์์๋ค.
๊ทธ๋์ ์๋ ๊ฒฝ๋ก์์ ์์ ๋น๋ฐ๋ฒํธ๋ฅผ ์ฐพ์๋ค.
sudo vi /etc/gitlab/initial_root_password

ํ๋ฃจ ๋ค์ ์ด ํ์ผ์ ์ง์์ง๋ค๊ณ ํ๊ณ ํด๋น ๋น๋ฐ๋ฒํธ๋ก ๋ก๊ทธ์ธ์ ํ๋ค.

์ฌ์ฉ์ ์์ด์ฝ > Preferences > Password๋ก ๊ฐ์ ๋น๋ฐ๋ฒํธ๋ฅผ ๋ณ๊ฒฝํ๋ค.

Save password ํด๋ฆญ ์ ๋ณ๊ฒฝ๋ ๋น๋ฐ๋ฒํธ๋ก ๋ค์ ๋ก๊ทธ์ธํ๋ผ๊ณ ํ์๋๊ณ ๋ค์ ๋ก๊ทธ์ธํ๋ค.

reference: https://about.gitlab.com/install/#centos-7
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
๊ฐ์ธ ์คํฐ๋ ๊ธฐ๋ก์ ๋ฉ๋ชจํ๋ ๊ณต๊ฐ์ด๋ผ ํ๋ฆฐ์ ์ด ์์ ์ ์์ต๋๋ค.
ํ๋ฆฐ ์ ์์ ๊ฒฝ์ฐ ๋๊ธ ๋ถํ๋๋ฆฝ๋๋ค.
[DevOps] CentOS 8 JenKins ์ค์น(feat. CI, CD)
๋ชฉ์ฐจJenKins ์ค์น๊ณผ์ ๋ด ๊ฒฝ์ฐ๋ jdk๊ฐ ์ด๋ฏธ ์ค์น๋์ด ์์๊ธฐ์ ๊ทธ ๋ถ๋ถ์ ์๋ตํ๋ค.#๊ณต๊ฐํค ๊ฐ์ ธ์จ๋ค.rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key#์ ์ฅ์ ํ์ผ ์ค์นsudo wget -O /etc/yum.repos.d/je
yaga.tistory.com
[DevOps] CentOS 8 Jenkins CI, CD ํ๊ฒฝ ๊ตฌ์ถ(feat. eGovCI)
๋ชฉ์ฐจ์ด๋ฒ์ ์ ์์ ๋ถํ๋ ์์ํฌ์ ์๋ฒ์ฉ ๊ฐ๋ฐํ๊ฒฝ์ ์ด์ฉํด์ CI, CD๋ฅผ ๊ตฌ์ถํ๋ค.๋ค์์ ์ ๋ฒ์ ์ค์นํ GitLab๊ณผ ์๋ก ์ค์นํ Jenkins๋ก ์ฒ์๋ถํฐ ์ฐ๋ํ๋ ๊ฒ๋ ํฌ์คํ ์์ ์ด๋ค. [DevOps] CentOS 8 Jen
yaga.tistory.com
'IT > DevOps' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
| [DevOps] Nexus ์คํ ๋ฐ ์ฐ๋ (feat. eGovCI) (37) | 2024.05.08 |
|---|---|
| [DevOps] CentOS 8 Jenkins CI, CD ํ๊ฒฝ ๊ตฌ์ถ(feat. eGovCI) (61) | 2024.05.03 |
| [DevOps] CentOS 8 JenKins ์ค์น(feat. CI, CD) (37) | 2024.05.01 |
| [DevOps] CentOS7 ์ค์น๋ถํฐ jdk, mysql, tomcat ์ฐ๋๊น์ง ๊ณผ์ (55) | 2024.04.25 |
| [linux] linux jboss eap 7.4 install, setting/ deploy (22) | 2023.12.30 |
๋๊ธ