티스토리 뷰

기록남기기

GitLab with Let's Encrypt 설치

양들의침묵1 2022. 5. 24. 13:58

OS : Rocky Linux 8.5
GitLab-CE

# dnf -y upgrade

1. Add GitLab repository and Configure necessary dependencies

# vim /etc/yum.repos.d/gitlab_gitlab-ce.repo

[gitlab_gitlab-ce]
name=gitlab_gitlab-ce
baseurl=https://packages.gitlab.com/gitlab/gitlab-ce/el/8/\$basearch
repo_gpgcheck=1
gpgcheck=1
enabled=1
gpgkey=https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey
       https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey/gitlab-gitlab-ce-3D645A26AB9FBD22.pub.gpg
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300

Update list of configured repositories:

# dnf repolist
레포지터리 ID                                                             레포지터리 이름
appstream                                                                 Rocky Linux 8 - AppStream
baseos                                                                    Rocky Linux 8 - BaseOS
extras                                                                    Rocky Linux 8 - Extras
gitlab_gitlab-ce                                                          gitlab_gitlab-ce
gitlab_gitlab-ce-source                                                   gitlab_gitlab-ce-source

2. Postfix install
GitLab 에서 노티로 이메일을 사용할 예정
# dnf -y install postfix
# systemctl enable --now postfix
#  systemctl status postfix
● postfix.service - Postfix Mail Transport Agent
   Loaded: loaded (/usr/lib/systemd/system/postfix.service; disabled; vendor preset: disabled)
   Active: active (running) since Tue 2022-05-17 13:54:24 KST; 6 days ago
  Process: 802529 ExecStop=/usr/sbin/postfix stop (code=exited, status=0/SUCCESS)
  Process: 802554 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)
  Process: 802552 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
  Process: 802549 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)
  Process: 802544 ExecStartPre=/usr/sbin/restorecon -R /var/spool/postfix/pid/master.pid (code=exited, status=255)
 Main PID: 802623 (master)
    Tasks: 4 (limit: 49480)
   Memory: 6.1M
   CGroup: /system.slice/postfix.service
           ├─ 802623 /usr/libexec/postfix/master -w
           ├─ 802625 qmgr -l -t unix -u
           ├─ 802658 tlsmgr -l -t unix -u
           └─1834602 pickup -l -t unix -u


3. GitLab install with SSL

# GitLab CE Installation
# EXTERNAL_URL="https://gitlab.example.com" dnf install -y gitlab-ce

4. GitLab Dashboard

https://git.example.com

초기 비밀번호
# cat /etc/gitlab/initial_root_password

Dashboard
root / (cat /etc/gitlab/initial_root_password)

 

root user 패스워드 변경 방법

User profile section, Administrator(root) > Edit Profile > Password 에서 변경

'기록남기기' 카테고리의 다른 글

GitLab sso (with google workspace)  (0) 2022.05.24
redmine sso (with google workspace)  (0) 2022.05.18
redmine4 설치  (0) 2022.05.18
YAML 문법 검사 사이트  (0) 2021.11.09
Oracle 19.3 on Rocky linux  (0) 2021.09.04