typo
This commit is contained in:
parent
d4be81ac91
commit
531e18c21e
|
@ -11,13 +11,13 @@ title: Howto GitLab
|
||||||
|
|
||||||
Nous installons la version **8.14.X** sous **Debian 8** (Jessie) avec une approche multi-instances.
|
Nous installons la version **8.14.X** sous **Debian 8** (Jessie) avec une approche multi-instances.
|
||||||
|
|
||||||
GitLab s'appuye sur Git, Ruby, Go, PostgreSQL et Redis.
|
GitLab s'appuie sur Git, Ruby, Go, PostgreSQL et Redis.
|
||||||
|
|
||||||
> **Note** : dans les exemples ci-dessous, on va créer une instance nommée *foo*
|
> **Note** : dans les exemples ci-dessous, on va créer une instance nommée *foo*
|
||||||
|
|
||||||
## Dépendances
|
## Dépendances
|
||||||
|
|
||||||
GitLab nécessite des version très récentes de Git, Ruby et Go.
|
GitLab nécessite des versions très récentes de Git, Ruby et Go.
|
||||||
|
|
||||||
On utilise pour l'instant des versions de Jessie Backports et Stretch via un « pinning » APT :
|
On utilise pour l'instant des versions de Jessie Backports et Stretch via un « pinning » APT :
|
||||||
|
|
||||||
|
@ -82,6 +82,8 @@ Création de l'extension `pg_trgm` :
|
||||||
~~~
|
~~~
|
||||||
# sudo -u postgres psql -d template1 -c "CREATE EXTENSION IF NOT EXISTS pg_trgm;"
|
# sudo -u postgres psql -d template1 -c "CREATE EXTENSION IF NOT EXISTS pg_trgm;"
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
> **Note** : C'est à faire seulement la première fois.
|
||||||
|
|
||||||
Création de la base pour GitLab :
|
Création de la base pour GitLab :
|
||||||
|
|
||||||
|
@ -169,7 +171,7 @@ dir /var/lib/redis
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
|
||||||
## GitLag CE
|
## GitLab CE
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
# sudo -iu foo
|
# sudo -iu foo
|
||||||
|
@ -311,7 +313,7 @@ On doit donc encore passer pas un script d'init classique :
|
||||||
# sudo -iu foo
|
# sudo -iu foo
|
||||||
$ cd gitlab
|
$ cd gitlab
|
||||||
$ sed -i -e 's/app_user="git"/app_user="foo"/' \
|
$ sed -i -e 's/app_user="git"/app_user="foo"/' \
|
||||||
-e 's/# Provides: .*gitlab/# Provides: foo/' \
|
-e 's/# Provides: .*gitlab/# Provides: gitlab-foo/' \
|
||||||
lib/support/init.d/gitlab
|
lib/support/init.d/gitlab
|
||||||
$ sed -i 's@script_path = "/etc/init.d/gitlab"@script_path = "/etc/init.d/gitlab-foo"@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'
|
$ git commit -a -m 'change default user'
|
||||||
|
@ -419,7 +421,7 @@ $ git fetch --all
|
||||||
$ git checkout -- Gemfile.lock db/schema.rb
|
$ git checkout -- Gemfile.lock db/schema.rb
|
||||||
$ git checkout v8.14.1 -b v8.14.1
|
$ git checkout v8.14.1 -b v8.14.1
|
||||||
$ sed -i -e s'/app_user="git"/app_user="foo"/' \
|
$ sed -i -e s'/app_user="git"/app_user="foo"/' \
|
||||||
-e 's/# Provides: .*gitlab$/# Provides: foo/' \
|
-e 's/# Provides: .*gitlab$/# Provides: gitlab-foo/' \
|
||||||
lib/support/init.d/gitlab
|
lib/support/init.d/gitlab
|
||||||
$ sed -i 's#script_path = "/etc/init.d/gitlab"#script_path = "/etc/init.d/gitlab-foo"#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'
|
$ git commit -a -m 'change default user'
|
||||||
|
@ -452,13 +454,13 @@ $ bundle exec rake gitlab:check RAILS_ENV=production
|
||||||
|
|
||||||
Si tout est au vert, la migration s'est bien passée !
|
Si tout est au vert, la migration s'est bien passée !
|
||||||
|
|
||||||
## Mineure 8.14.1 vers 8.14.2
|
## Mise à jour mineure 8.14.1 vers 8.14.2
|
||||||
|
|
||||||
### Sauvegarde
|
### Sauvegarde
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
# sudo -iu foo
|
# sudo -iu foo
|
||||||
$ cd #gitlab
|
$ cd gitlab
|
||||||
$ bundle exec rake gitlab:backup:create RAILS_ENV=production
|
$ bundle exec rake gitlab:backup:create RAILS_ENV=production
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
@ -474,7 +476,7 @@ $ git fetch --all
|
||||||
$ git checkout -- Gemfile.lock db/schema.rb
|
$ git checkout -- Gemfile.lock db/schema.rb
|
||||||
$ git checkout v8.14.2 -b v8.14.2
|
$ git checkout v8.14.2 -b v8.14.2
|
||||||
$ sed -i -e s'/app_user="git"/app_user="foo"/' \
|
$ sed -i -e s'/app_user="git"/app_user="foo"/' \
|
||||||
-e 's/# Provides: .*gitlab$/# Provides: foo/' \
|
-e 's/# Provides: .*gitlab$/# Provides: gitlab-foo/' \
|
||||||
lib/support/init.d/gitlab
|
lib/support/init.d/gitlab
|
||||||
$ sed -i 's@script_path = "/etc/init.d/gitlab"@script_path = "/etc/init.d/foo"@g' lib/tasks/gitlab/check.rake
|
$ sed -i 's@script_path = "/etc/init.d/gitlab"@script_path = "/etc/init.d/foo"@g' lib/tasks/gitlab/check.rake
|
||||||
$ git commit -a -m 'change default user'
|
$ git commit -a -m 'change default user'
|
||||||
|
@ -521,7 +523,7 @@ GitLab and all its components are up and running.
|
||||||
|
|
||||||
### Vérifier le status
|
### Vérifier le status
|
||||||
|
|
||||||
~~
|
~~~
|
||||||
# sudo -iu foo
|
# sudo -iu foo
|
||||||
$ cd gitlab
|
$ cd gitlab
|
||||||
$ bundle exec rake gitlab:env:info RAILS_ENV=production
|
$ bundle exec rake gitlab:env:info RAILS_ENV=production
|
||||||
|
|
Loading…
Reference in a new issue