Gitlab 8.3.1 auf 8.4.0 aktualisieren

270 Wörter 2 Minuten Lesezeit

Die kollaborative Versionsverwaltung Gitlab unter Debian von Version 8.3.1 auf Version 8.4.0 aktualisieren.

Stop + Backup

sudo service gitlab stop
cd /home/git/gitlab
sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production

gitlab 8.4.0

cd /home/git/gitlab
sudo -u git -H git fetch --all
sudo -u git -H git checkout -- db/schema.rb
sudo -u git -H git checkout v8.4.0

gitlab-shell 2.6.10

cd /home/git/gitlab-shell
sudo -u git -H git fetch
sudo -u git -H git checkout v2.6.10

gitlab-workhorse 0.6.1

cd /home/git/gitlab-workhorse
sudo -u git -H git fetch --all
sudo -u git -H git checkout 0.6.1
sudo -u git -H make

bundler 1.10.6 auf 1.11.2 aktualisieren

cd ~
sudo gem2.1 install bundler

gitlab updaten

cd /home/git/gitlab
sudo -u git -H bundle install --without development test postgres --deployment
sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production
sudo -u git -H bundle exec rake assets:clean assets:precompile cache:clear RAILS_ENV=production
sudo cp lib/support/init.d/gitlab /etc/init.d/gitlab

Config

cd /home/git/gitlab
sudo -u git -H git diff v8.3.1 v8.4.0 config/gitlab.yml.example
#sudo -u git -H vi /home/git/gitlab/config/gitlab.yml

sudo -u git -H git diff v8.3.1 v8.4.0 lib/support/nginx/gitlab
#sudo vi /etc/nginx/sites-available/gitlab

Restart

sudo systemctl daemon-reload
sudo service gitlab start
sudo service nginx restart

Check

cd /home/git/gitlab
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
System information
System:         Debian 8
Current User:   git
Using RVM:      no
Ruby Version:   2.1.5p273
Gem Version:
Bundler Version:1.11.2
Rake Version:   10.5.0
Sidekiq Version:4.0.1

GitLab information
Version:        8.4.0
Revision:       1b1c0ba
Directory:      /home/git/gitlab
DB Adapter:     mysql2
URL:            http://gitlab.domain.tld
HTTP Clone URL: http://gitlab.domain.tld/some-group/some-project.git
SSH Clone URL:  git@gitlab.domain.tld:some-group/some-project.git
Using LDAP:     no
Using Omniauth: no

GitLab Shell
Version:        2.6.10
Repositories:   /home/git/repositories/
Hooks:          /home/git/gitlab-shell/hooks/
Git:            /usr/bin/git