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 ...

Get Learning Gerrit Code Review now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.