18
0
Fork 0

relecture

This commit is contained in:
gcolpart 2016-12-02 14:09:41 +01:00
parent 6c7a33b92e
commit d4be81ac91
1 changed files with 33 additions and 37 deletions

View File

@ -142,7 +142,7 @@ Puis :
Configuration spéciale pour l'instance :
~~~
# cat /etc/redis/gitlab-demo00.conf
# cat /etc/redis/foo.conf
daemonize yes
pidfile /var/run/redis/foo.pid
@ -262,7 +262,7 @@ Configuration :
~~~
$ cp config/resque.yml.example config/resque.yml
$ sed -i 's/redis.sock/gitlab-demo00.sock/' config/resque.yml
$ sed -i 's/redis.sock/foo.sock/' config/resque.yml
~~~
## Gems
@ -308,7 +308,7 @@ Attention, GitLab ne supporte pas officiellement systemd !
On doit donc encore passer pas un script d'init classique :
~~~
# sudo -iu gitlab-demo00
# sudo -iu foo
$ cd gitlab
$ sed -i -e 's/app_user="git"/app_user="foo"/' \
-e 's/# Provides: .*gitlab/# Provides: foo/' \
@ -323,7 +323,7 @@ $ git commit -a -m 'change default user'
## Logrotate
~~~
# install -m 644 /home/gitlab-demo00/gitlab/lib/support/logrotate/gitlab /etc/logrotate.d/gitlab-foo
# install -m 644 /home/foo/gitlab/lib/support/logrotate/gitlab /etc/logrotate.d/gitlab-foo
# sed -i 's@/home/git@/home/foo@g' /etc/logrotate.d/gitlab-foo
~~~
@ -352,7 +352,7 @@ On utilise Nginx, c'est le seul serveur web supporté officiellement par GitLab
Vérification de l'état de l'installation :
~~~
# sudo -iu gitlab-demo00
# sudo -iu foo
$ cd gitlab
$ bundle exec rake gitlab:env:info RAILS_ENV=production
~~~
@ -369,15 +369,15 @@ Démarrage de l'instance :
# /etc/init.d/gitlab-foo start
~~~
Vérifier le status :
Vérifier le statut :
~~~
# sudo -iu gitlab-demo00
# sudo -iu foo
$ cd gitlab
$ bundle exec rake gitlab:check RAILS_ENV=production
~~~
Si tout est au vert, c'est bon ! On pourra aller sur l'instance via https://demo00.gitlab.example.com
Si tout est au vert, c'est bon ! On pourra aller sur l'instance via http://foo.gitlab.example.com
# Sauvegarde
@ -396,65 +396,65 @@ Dans `~/gitlab/config/gitlab.yml` on pourra indiquer un temps de rétention. Par
Attention, le fichier `secrets.yml` contient les clés de chiffrements pour les sessions et les variables. Il n'est pas inclus dans les sauvegardes GitLab. Vous devez le copier au moins une fois dans un endroit sécurisé.
# Mise à jour
# Mises à jour
Le principe des mises à jour est basé sur un `git pull` et un `git checkout`.
## Mineure 8.14.0 vers 8.14.1
## Mise à jour mineure 8.14.0 vers 8.14.1
### Backup
### Sauvegarde
```
# sudo -iu gitlab-demo00
~~~
# sudo -iu foo
$ cd gitlab
$ bundle exec rake gitlab:backup:create RAILS_ENV=production
```
~~~
### Mise à jour de GitLab
```
# sudo -iu gitlab-demo00
~~~
# sudo -iu foo
$ cd gitlab
$ git fetch --all
$ git checkout -- Gemfile.lock db/schema.rb
$ git checkout v8.14.1 -b v8.14.1
$ sed -i -e s'/app_user="git"/app_user="gitlab-demo00"/' \
-e 's/# Provides: .*gitlab$/# Provides: gitlab-demo00/' \
$ sed -i -e s'/app_user="git"/app_user="foo"/' \
-e 's/# Provides: .*gitlab$/# Provides: foo/' \
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
$ sed -i 's#script_path = "/etc/init.d/gitlab"#script_path = "/etc/init.d/gitlab-foo"#g' lib/tasks/gitlab/check.rake
$ git commit -a -m 'change default user'
```
~~~
### Mise à jour BDD, gems et assets
### Mise à jour base de données, Gems et assets
```
~~~
$ cd ~/gitlab
$ bundle install --without development test mysql aws kerberos --deployment
$ bundle clean
$ bundle exec rake assets:clean assets:precompile cache:clear RAILS_ENV=production
$ git commit -a -m 'upgraded to 8.14.1'
```
~~~
### Redémarrer GitLab
```
# /etc/init.d/gitlab-demo00 restart
```
~~~
# /etc/init.d/gitlab-foo restart
~~~
### Vérifier le status
```
# sudo -iu gitlab-demo00
~~~
# sudo -iu foo
$ 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é !
Si tout est au vert, la migration s'est bien passée !
## Mineure 8.14.1 vers 8.14.2
### Backup
### Sauvegarde
~~~
# sudo -iu foo
@ -530,10 +530,6 @@ $ bundle exec rake gitlab:check RAILS_ENV=production
Si tout est au vert, la migration s'est bien passée !
## Majeure
## Mise à jour majeure
En attente d'une nouvelle release majeure :)
# Création d'une autre instance
Il suffit de rejouer la procédure en modifiant « gitlab-demo00 » par le nom d'instance souhaitée.
En attente d'une nouvelle release majeure :)