GitLab: verschil tussen versies

Uit WaaaghPedia
Geen bewerkingssamenvatting
 
 
(19 tussenliggende versies door dezelfde gebruiker niet weergegeven)
Regel 1: Regel 1:
{{Alertbox/Danger
== Voorbereiding ==
|info=Pagina wordt NIET bijgehouden!
===Machine===
}}
*2 Cores
*4GB ram
*50GB hdd
 
===Software===
[[CentOS_7/Installeren|Installeer CentOS]] en [[CentOS_7/FineTune|Finetune CentOS]]


== Installatie ==
== Installatie ==
'''Voorbereiding'''
https://about.gitlab.com/install/#centos-7
[[CentOS_7/Installeren|Installeer CentOS]] en [[CentOS_7/FineTune|Finetune CentOS]]
 
==Updates==
https://docs.gitlab.com/ee/policy/maintenance.html#upgrade-recommendations
<pre>
<pre>
yum install -y curl policycoreutils-python openssh-server
sudo gitlab-rake gitlab:backup:create STRATEGY=copy
systemctl enable sshd
sudo yum install -y gitlab-ee
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
</pre>
</pre>
Open je browser en ga naar http://gitlab.example.com en maak een root wachtwoord aan.
===Multi step updates===
Veel Plezier
https://docs.gitlab.com/omnibus/update/#multi-step-upgrade-using-the-official-repositories
==Upgrades==
 
===Tijdzone===
== HTTPS ==
https://docs.gitlab.com/ee/workflow/timezone.html
https://docs.gitlab.com/omnibus/settings/nginx.html#manually-configuring-https
 
== SMTP ==
https://docs.gitlab.com/omnibus/settings/smtp.html


===SMTP===
<pre>gitlab_rails['smtp_enable'] = true
<pre>gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.server"
gitlab_rails['smtp_address'] = "smtp.server"
Regel 35: Regel 36:
gitlab_rails['smtp_openssl_verify_mode'] = 'peer'</pre>
gitlab_rails['smtp_openssl_verify_mode'] = 'peer'</pre>


https://docs.gitlab.com/omnibus/settings/smtp.html#examples
== LDAP ==
===SSL===
https://docs.gitlab.com/ee/administration/auth/ldap.html
{{Alertbox/Info
|info=Lets Encrypt versie: https://docs.gitlab.com/omnibus/settings/ssl.html#lets-encrypt-integration
}}
<pre>nano /etc/gitlab/gitlab.rb</pre>
<pre>external_url "https://gitlab.example.com"</pre>
<pre>mkdir -p /etc/gitlab/ssl
chmod 700 /etc/gitlab/ssl
cd /etc/gitlab/ssl
touch gitlab.example.com.key gitlab.example.com.crt</pre>
<pre>nano /etc/gitlab/ssl/*.key</pre>
<pre>nano /etc/gitlab/ssl/*.crt</pre>
<pre>gitlab-ctl reconfigure</pre>


{{Alertbox/Info
Open je browser en ga naar http://gitlab.example.com en maak een root wachtwoord aan.
|info=Meest actuele versie: https://docs.gitlab.com/omnibus/settings/ssl.html#lets-encrypt-integration
Veel Plezier
}}
 
===Firewall===
<pre>
firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https
systemctl reload firewalld
</pre>
 
===Importeren===
====Bitbucket====
https://docs.gitlab.com/ee/integration/bitbucket.html


== Tweakes ==
=== Upload filesize ===
* From the Dashboard, navigate to Admin Area > Settings > General.
* Expand the Account and limit section.
* Fill in the Size limit per repository (MB) field.
* Save changes.
==Commands==
==Commands==
<pre>
<pre>
Regel 71: Regel 54:
</pre>
</pre>


==Bron==
[[Categorie:Linux Software]]
https://about.gitlab.com/installation/#centos-7
[[Categorie:SelfHosted Software]]
 
[[Category:Selfhosted]]

Huidige versie van 29 jun 2021 om 09:01

Voorbereiding

Machine

  • 2 Cores
  • 4GB ram
  • 50GB hdd

Software

Installeer CentOS en Finetune CentOS

Installatie

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

Updates

https://docs.gitlab.com/ee/policy/maintenance.html#upgrade-recommendations

sudo gitlab-rake gitlab:backup:create STRATEGY=copy
sudo yum install -y gitlab-ee

Multi step updates

https://docs.gitlab.com/omnibus/update/#multi-step-upgrade-using-the-official-repositories

HTTPS

https://docs.gitlab.com/omnibus/settings/nginx.html#manually-configuring-https

SMTP

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

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'

LDAP

https://docs.gitlab.com/ee/administration/auth/ldap.html

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

Tweakes

Upload filesize

  • From the Dashboard, navigate to Admin Area > Settings > General.
  • Expand the Account and limit section.
  • Fill in the Size limit per repository (MB) field.
  • Save changes.

Commands

gitlab-ctl status
gitlab-ctl reconfigure