From 086183964767288e69c2de6e73387b3bdd49b31c Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Tue, 10 Jul 2012 16:52:45 -0500 Subject: [PATCH] Add documentation on adding a replica rep. Change-Id: I05ab18c9f111b47473e79fd5d711eed1941885c9 --- doc/gerrit.rst | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/doc/gerrit.rst b/doc/gerrit.rst index a755dd69db..052b8b6c6e 100644 --- a/doc/gerrit.rst +++ b/doc/gerrit.rst @@ -713,6 +713,18 @@ with instructions to use Gerrit. and add the project to the list of github projects in the gerrit class for the gerrit.openstack.org node. +Adding Local Git Replica +======================== + +Gerrit replicates all repos to a local directory so that Apache can +serve the anonymous http requests out directly. + +On the gerrit host:: + + sudo git --bare init --shared=group /var/lib/git/openstack/PROJECT + sudo chgrp -R gerrit2 /var/lib/git/openstack/PROJECT + + Migrating a Project from bzr ============================ @@ -928,7 +940,9 @@ Adding A New Project On The Command Line All of the steps involved in adding a new project to Gerrit can be accomplished via the commandline, with the exception of creating a new repo -on github and adding the jenkins jobs. +on github and adding the jenkins jobs. Creating the local project +replication repo on the gerrit host can be done on the command line too, +but the process is the same as above. First of all, add the .gitreview file to the repo that will be added. Then, assuming an ssh config alias of `review` for the gerrit instance, as a person