| Line 1: |
Line 1: |
| − | =Install= | + | =Install Omnibus Package= |
| | + | www.gitlab.com |
| | + | ==Disable bundled Nginx== |
| | + | @/etc/gitlab/gitlab.rb |
| | + | ==Setup Nginx== |
| | + | see snippet @https://git.herrerosolis.com |
| | + | |
| | + | =Install From Source (Not recomended)= |
| | see: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/installation.md<br /> | | see: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/installation.md<br /> |
| − | === Upgrade gitlab-shell=== | + | ssl: https://gitlab.com/gitlab-org/gitlab-recipes/tree/master/misc/ssl-certificate-implemented |
| | + | ===Upgrade gitlab-shell=== |
| | <source lang="bash"> | | <source lang="bash"> |
| | cd /home/git/gitlab-shell | | cd /home/git/gitlab-shell |
| Line 7: |
Line 15: |
| | sudo -u git -H git checkout v1.9.6 | | sudo -u git -H git checkout v1.9.6 |
| | </source> | | </source> |
| − | === Resync authorized_keys file === | + | ===Resync authorized_keys file=== |
| | sudo -u git -H bundle exec rake gitlab:shell:setup RAILS_ENV=production | | sudo -u git -H bundle exec rake gitlab:shell:setup RAILS_ENV=production |
| | ===Database=== | | ===Database=== |
| Line 36: |
Line 44: |
| | ==Default repositorys== | | ==Default repositorys== |
| | git_data_dir "/var/opt/gitlab/git-data" | | git_data_dir "/var/opt/gitlab/git-data" |
| | + | <br /> |
| | + | |
| | + | = Registry = |
| | + | Add to /etc/gitlab/gitlab.rb the following line<syntaxhighlight lang="ruby"> |
| | + | registry_external_url 'https://git.rra.lan:4443' |
| | + | </syntaxhighlight>Run <syntaxhighlight lang="bash"> |
| | + | gitlab-ctl reconfigure |
| | + | </syntaxhighlight><br /> |
| | + | |
| | + | = Let's Encrypt = |
| | + | Add to /etc/gitlab/gitlab.rb the following lines<syntaxhighlight lang="ruby"> |
| | + | letsencrypt['enable'] = true |
| | + | letsencrypt['contact_emails'] = ['redteam@bbva.com'] |
| | + | letsencrypt['auto_renew_hour'] = "12" |
| | + | letsencrypt['auto_renew_minute'] = "30" |
| | + | letsencrypt['auto_renew_day_of_month'] = "*/7" |
| | + | letsencrypt['auto_renew'] = false |
| | + | |
| | + | </syntaxhighlight>Run <syntaxhighlight lang="bash"> |
| | + | gitlab-ctl reconfigure |
| | + | </syntaxhighlight> |
| | + | |
| | =Update= | | =Update= |
| | [https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/update/patch_versions.md Guide] | | [https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/update/patch_versions.md Guide] |
| Line 43: |
Line 73: |
| | Search for: | | Search for: |
| | <nowiki> | | <nowiki> |
| − | # Supported DBs | + | # Supported DBs |
| − | gem "mysql2", '~> 0.3.16', group: :mysql | + | gem "mysql2", '~> 0.3.16', group: :mysql |
| − | #gem "pg", '~> 0.18.2', group: :postgres <--------COMMENT THIS LINE </nowiki> | + | #gem "pg", '~> 0.18.2', group: :postgres <--------COMMENT THIS LINE </nowiki> |
| | Search for: | | Search for: |
| | <nowiki> | | <nowiki> |
| − | group :production do | + | group :production do |
| − | gem "gitlab_meta", '7.0'
| + | gem "gitlab_meta", '7.0' |
| − | gem "pg", '~> 0.18.2', group: :postgres <--------- ADD THIS
| + | gem "pg", '~> 0.18.2', group: :postgres <--------- ADD THIS |
| − | end </nowiki> | + | end </nowiki> |
| | | | |
| | If it fails with *pg_trgm* | | If it fails with *pg_trgm* |
| | sudo apt-get install postgresql-contrib | | sudo apt-get install postgresql-contrib |
| | sudo -u postgres psql -d gitlabhq_production -c "create extension pg_trgm;" | | sudo -u postgres psql -d gitlabhq_production -c "create extension pg_trgm;" |
| | + | |
| | + | =CI Runner setup @raspberry pi= |
| | + | [https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/blob/master/docs/install/linux-repository.md GitLab Documentation] |
| | + | |
| | + | #Install Docker |
| | + | #:<pre>curl -sSL https://get.docker.com/ | sh</pre> |
| | + | #Add gitlab repository |
| | + | #:<pre>curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.deb.sh | sudo bash</pre> |
| | + | #Debian should use apt pinning |
| | + | #:<pre>cat > /etc/apt/preferences.d/pin-gitlab-runner.pref <<EOF |
| | + | #::Explanation: Prefer GitLab provided packages over the Debian native ones |
| | + | #::Package: gitlab-ci-multi-runner |
| | + | #::Pin: origin packages.gitlab.com |
| | + | #::Pin-Priority: 1001 |
| | + | #::EOF</pre> |
| | + | #Install gitlab-ci-multi-runner |
| | + | #:<pre>sudo apt-get install gitlab-ci-multi-runner</pre> |