Upgrade majeure 8.13 to 8.14
This commit is contained in:
parent
fb75f8d40b
commit
33c278eca1
|
@ -387,9 +387,9 @@ Si tout est au vert, c'est bon ! On pourra aller sur l'instance via https://demo
|
||||||
|
|
||||||
# Mise à jour
|
# Mise à jour
|
||||||
|
|
||||||
## Mineure
|
Le principe des mises à jour est basé sur un `git pull` et un `git checkout`.
|
||||||
|
|
||||||
Pour les mises à jour mineure, par exemple de 8.13.5 vers 8.13.6, c'est surtout basé sur un simple `git pull` et un `git checkout`.
|
## Mineure 8.13.5 vers 8.13.6
|
||||||
|
|
||||||
### Backup
|
### Backup
|
||||||
|
|
||||||
|
@ -463,13 +463,92 @@ $ bundle exec rake gitlab:check RAILS_ENV=production
|
||||||
|
|
||||||
Si tout est au vert, la migration s'est bien passé !
|
Si tout est au vert, la migration s'est bien passé !
|
||||||
|
|
||||||
## Majeure
|
## Majeure 8.13 vers 8.14
|
||||||
|
|
||||||
Pour les mises à jour majeure, par exemple de 8.13 à 8.14, il y a une documentation officielle bien défini.
|
Pour les mises à jour majeure, par exemple de 8.13 à 8.14, il y a une documentation officielle bien défini. Nous sommes évidement basé sur la documentation officielle.
|
||||||
[Liste des documentations d'upgrades majeure.](https://gitlab.com/gitlab-org/gitlab-ce/tree/master/doc/update)
|
[Liste des documentations d'upgrades majeure.](https://gitlab.com/gitlab-org/gitlab-ce/tree/master/doc/update)
|
||||||
|
|
||||||
> **Note** : Si nous n'avons pas encore écrit le howto de migration, il faudra bien penser à faire les adaptations nécessaires (chemin, nom d'utilisateur, …).
|
> **Note** : Si nous n'avons pas encore écrit le howto de migration, il faudra bien penser à faire les adaptations nécessaires (chemin, nom d'utilisateur, …).
|
||||||
|
|
||||||
|
### Arrêt du service
|
||||||
|
|
||||||
|
```
|
||||||
|
# /etc/init.d/gitlab-demo00 stop
|
||||||
|
```
|
||||||
|
|
||||||
|
### Backup
|
||||||
|
|
||||||
|
```
|
||||||
|
# sudo -iu gitlab-demo00
|
||||||
|
$ cd gitlab
|
||||||
|
$ bundle exec rake gitlab:backup:create RAILS_ENV=production
|
||||||
|
```
|
||||||
|
|
||||||
|
### Mise à jour de GitLab
|
||||||
|
|
||||||
|
```
|
||||||
|
$ git fetch --all
|
||||||
|
$ git checkout -- db/schema.rb
|
||||||
|
$ git checkout 8-14-stable
|
||||||
|
$ sed -i s'/app_user="git"/app_user="gitlab-demo00"/' lib/support/init.d/gitlab
|
||||||
|
$ sed -i 's#script_path = "/etc/init.d/gitlab"#script_path = "/etc/init.d/gitlab-demo00"#g' lib/tasks/gitlab/check.rake
|
||||||
|
$ git commit -a -m 'change default user'
|
||||||
|
```
|
||||||
|
|
||||||
|
### Mise à jour de gitlab-shell
|
||||||
|
|
||||||
|
```
|
||||||
|
$ cd ~/gitlab-shell
|
||||||
|
$ git fetch --all --tags
|
||||||
|
$ git checkout v4.0.0
|
||||||
|
```
|
||||||
|
|
||||||
|
### Mise à jour de gitlab-workhrose
|
||||||
|
|
||||||
|
```
|
||||||
|
$ cd ~/gitlab-workhorse
|
||||||
|
$ git fetch --all
|
||||||
|
$ git checkout v1.0.0
|
||||||
|
$ make
|
||||||
|
```
|
||||||
|
|
||||||
|
### Mise à jour BDD, gems et assets
|
||||||
|
|
||||||
|
```
|
||||||
|
$ cd ~/gitlab
|
||||||
|
$ bundle install --without development test mysql aws kerberos --deployment
|
||||||
|
$ bundle clean
|
||||||
|
$ bundle exec rake db:migrate RAILS_ENV=production
|
||||||
|
$ bundle exec rake assets:clean assets:precompile cache:clear RAILS_ENV=production
|
||||||
|
```
|
||||||
|
|
||||||
|
### Mise à jour de la config
|
||||||
|
|
||||||
|
Il va falloir merger manuellement la configuration.
|
||||||
|
|
||||||
|
```
|
||||||
|
$ vimdiff <(git show origin/8-14-stable:config/gitlab.yml.example) config/gitlab.yml
|
||||||
|
$ git commit -a -m 'manually merged config file'
|
||||||
|
$ git config --global repack.writeBitmaps true
|
||||||
|
```
|
||||||
|
### Démarrer GitLab
|
||||||
|
|
||||||
|
```
|
||||||
|
# /etc/init.d/gitlab-demo00 start
|
||||||
|
# /etc/init.d/nginx restart
|
||||||
|
```
|
||||||
|
|
||||||
|
### Vérifier le status
|
||||||
|
|
||||||
|
```
|
||||||
|
# sudo -iu gitlab-demo00
|
||||||
|
$ cd gitlab
|
||||||
|
$ bundle exec rake gitlab:env:info RAILS_ENV=production
|
||||||
|
$ bundle exec rake gitlab:check RAILS_ENV=production
|
||||||
|
```
|
||||||
|
|
||||||
|
Si tout est au vert, la migration s'est bien passé !
|
||||||
|
|
||||||
# Création d'une autre instance
|
# Création d'une autre instance
|
||||||
|
|
||||||
Il suffit de rejouer la procédure en modifiant « gitlab-demo00 » par le nom d'instance souhaitée.
|
Il suffit de rejouer la procédure en modifiant « gitlab-demo00 » par le nom d'instance souhaitée.
|
Loading…
Reference in a new issue