How to install GERRIT on Linux server?

2,267 views
Skip to first unread message

emarcbo

unread,
Apr 30, 2012, 11:35:23 AM4/30/12
to Repo and Gerrit Discussion, marco.d...@ericsson.com
Hi!

I am a newble on this kind of things.
And now i should work both git and gerrit software versioning.

About gerrit i got it from Internet gerrit-2.3.war and put into my
linux server

I did successfully these 2 commands

- java -jar gerrit-2.3.war init --batch -d ~/gerrit_testsite
- cat ~/gerrit_testsite/etc/gerrit.config | grep canonical

but I suppose there are many operations i missed!

At present i have no repository git.

Is there anyone who kindly could me explain what operations i have to
do?


Thanks

Best regards
Marco from Italy

Anatol Pomazau

unread,
Apr 30, 2012, 12:01:20 PM4/30/12
to emarcbo, Repo and Gerrit Discussion, marco.d...@ericsson.com
Hi

On Mon, Apr 30, 2012 at 8:35 AM, emarcbo <scorpi...@gmail.com> wrote:
Hi!

Gerrit Installation Guide document is a good starting point for you http://gerrit.googlecode.com/svn/documentation/2.2.1/install.html

Check also other topics in the documentation such as creating projects via command line.

Magnus Bäck

unread,
Apr 30, 2012, 12:51:45 PM4/30/12
to Repo and Gerrit Discussion
On Monday, April 30, 2012 at 12:01 EDT,
Anatol Pomazau <ana...@google.com> wrote:

> On Mon, Apr 30, 2012 at 8:35 AM, emarcbo <scorpi...@gmail.com> wrote:
>
> > I am a newble on this kind of things.
> > And now i should work both git and gerrit software versioning.
> >
> > About gerrit i got it from Internet gerrit-2.3.war and put into my
> > linux server
> >
> > I did successfully these 2 commands
> >
> > - java -jar gerrit-2.3.war init --batch -d ~/gerrit_testsite
> > - cat ~/gerrit_testsite/etc/gerrit.config | grep canonical
> >
> > but I suppose there are many operations i missed!
> >
> > At present i have no repository git.
> >
> > Is there anyone who kindly could me explain what operations i have
> > to do?

Assuming the "init" command above succeeded, you should be able to
start Gerrit with the command described in the URL below. When Gerrit
is running you can visit the web UI and sign in. Make sure you get that
far. Then you can continue creating projects (i.e. gits to work in).

> Gerrit Installation Guide document is a good starting point for you
> http://gerrit.googlecode.com/svn/documentation/2.2.1/install.html

That's the 2.2.1 documentation and the OP is running 2.3. I doubt the
installation guide is different in anyway between these two version, but
the rest of the documentation linked from the footer of install.html
will contain differences.

http://gerrit-documentation.googlecode.com/svn/Documentation/2.3/install.html

--
Magnus Bäck
ba...@google.com

Anatol Pomazau

unread,
Apr 30, 2012, 1:18:18 PM4/30/12
to Repo and Gerrit Discussion
Hi

Thanks for the url.

While here - would it be possible to remove old docs from gogolecode svn? When I search for "gerrit documentation" google returns documentation for 2.0 as a first result [1], then it return docs for 2.2.2.1 and then 2.1.7. To find the latest gerrit docs is problematic unless you know the exact url.

Ideally the svn should store only docs for the latest released version, OR we need to tell search engines not to index the old docs.

Magnus Bäck

unread,
Apr 30, 2012, 2:36:33 PM4/30/12
to Repo and Gerrit Discussion
On Monday, April 30, 2012 at 13:18 EDT,
Anatol Pomazau <ana...@google.com> wrote:

> While here - would it be possible to remove old docs from gogolecode svn?

I don't know if we can do this unless the documentation stays backwards
compatible so that users of older Gerrit releases can use the most
recent documentation without getting too confused. This means that for
each change that also requires a documentation change the author must
consider whether "this feature is for x.y only" text needs to be added
so that the documentation makes sense for users of both old and new
versions of the software. This is easy for some pieces of software
where evolution is limited and in itself backwards compatible, but
Gerrit hardly falls into that category (yet).

[...]

--
Magnus Bäck
ba...@google.com

Edwin Kempin

unread,
May 2, 2012, 3:38:09 AM5/2/12
to Repo and Gerrit Discussion
Another good starting point in the documentation about installing Gerrit is:
http://gerrit-documentation.googlecode.com/svn/Documentation/2.3/install-quick.html


2012/4/30 Magnus Bäck <ba...@google.com>
Reply all
Reply to author
Forward
0 new messages