O'Reilly logo

Learning Gerrit Code Review by Luca Milanesio

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Running Gerrit initial setup

Before starting the Gerrit setup we need to create a dedicated user for it (for example, Gerrit), in order to allow the service to work in its own account sandbox, and not under the system administrator (root) account. For better convenience we assign the /opt/gerrit as home directory:

$ useradd –d /opt/gerrit gerrit
$ chown –R gerrit:gerrit /opt/gerrit
$ su - gerrit

Gerrit WAR is packaged in such a way that it can be used as standard executable archive for Java and can be run with the following command line:

$ java -jar gerrit.war

We will set up a reduced sandbox Gerrit installation with the following characteristics:

  • Default security algorithms (we will cover stronger security later on)
  • Standard HTTP without SSL
  • Local ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required