Handelingen

GitLab

Uit WaaaghPedia

Installatie

Voorbereiding Installeer CentOS en Finetune CentOS

yum install -y curl policycoreutils-python openssh-server
systemctl enable sshd
systemctl start sshd
firewall-cmd --permanent --add-service=http
systemctl reload firewalld
yum install postfix
systemctl enable postfix
systemctl start postfix
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
sudo EXTERNAL_URL="http://gitlab.example.com" yum install -y gitlab-ee

Open je browser en ga naar http://gitlab.example.com en maak een root wachtwoord aan. Veel Plezier

Upgrades

Tijdzone

https://docs.gitlab.com/ee/workflow/timezone.html

SMTP

gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.server"
gitlab_rails['smtp_port'] = 465
gitlab_rails['smtp_user_name'] = "smtp user"
gitlab_rails['smtp_password'] = "smtp password"
gitlab_rails['smtp_domain'] = "example.com"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['smtp_openssl_verify_mode'] = 'peer'

https://docs.gitlab.com/omnibus/settings/smtp.html#examples

SSL


nano /etc/gitlab/gitlab.rb
external_url "https://gitlab.example.com"
mkdir -p /etc/gitlab/ssl
chmod 700 /etc/gitlab/ssl
cd /etc/gitlab/ssl
touch gitlab.example.com.key gitlab.example.com.crt
nano /etc/gitlab/ssl/*.key
nano /etc/gitlab/ssl/*.crt
gitlab-ctl reconfigure


Firewall

firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https
systemctl reload firewalld

Importeren

Bitbucket

https://docs.gitlab.com/ee/integration/bitbucket.html

Commands

gitlab-ctl status
gitlab-ctl reconfigure

Bron

https://about.gitlab.com/installation/#centos-7