David Ostrovsky | 0e5a1c3 | 2015-06-14 22:37:32 +0200 | [diff] [blame] | 1 | # Gerrit Code Review |
| 2 | |
| 3 | [Gerrit](https://www.gerritcodereview.com) is a code review and project |
| 4 | management tool for Git based projects. |
| 5 | |
Luca Milanesio | c0e2926 | 2016-10-15 23:49:45 +0100 | [diff] [blame] | 6 | [](https://gerrit-ci.gerritforge.com/job/Gerrit-master/) |
| 7 | |
David Ostrovsky | 0e5a1c3 | 2015-06-14 22:37:32 +0200 | [diff] [blame] | 8 | ## Objective |
| 9 | |
| 10 | Gerrit makes reviews easier by showing changes in a side-by-side display, |
| 11 | and allowing inline comments to be added by any reviewer. |
| 12 | |
| 13 | Gerrit simplifies Git based project maintainership by permitting any |
| 14 | authorized user to submit changes to the master Git repository, rather |
| 15 | than requiring all approved changes to be merged in by hand by the project |
| 16 | maintainer. |
| 17 | |
| 18 | ## Documentation |
| 19 | |
David Pursehouse | ec716e0 | 2015-06-30 08:22:26 +0000 | [diff] [blame] | 20 | For information about how to install and use Gerrit, refer to |
| 21 | [the documentation](https://gerrit-review.googlesource.com/Documentation/index.html). |
David Ostrovsky | 0e5a1c3 | 2015-06-14 22:37:32 +0200 | [diff] [blame] | 22 | |
| 23 | ## Source |
| 24 | |
David Pursehouse | ec716e0 | 2015-06-30 08:22:26 +0000 | [diff] [blame] | 25 | Our canonical Git repository is located on [googlesource.com](https://gerrit.googlesource.com/gerrit). |
Luca Milanesio | fff21ac | 2017-04-05 09:01:58 +0100 | [diff] [blame] | 26 | There is a mirror of the repository on [Github](https://github.com/GerritCodeReview/gerrit). |
David Ostrovsky | 0e5a1c3 | 2015-06-14 22:37:32 +0200 | [diff] [blame] | 27 | |
David Pursehouse | ec716e0 | 2015-06-30 08:22:26 +0000 | [diff] [blame] | 28 | ## Reporting bugs |
David Ostrovsky | 0e5a1c3 | 2015-06-14 22:37:32 +0200 | [diff] [blame] | 29 | |
David Pursehouse | ff8982d | 2016-06-23 15:30:50 +0900 | [diff] [blame] | 30 | Please report bugs on the [issue tracker](https://bugs.chromium.org/p/gerrit/issues/list). |
David Ostrovsky | 0e5a1c3 | 2015-06-14 22:37:32 +0200 | [diff] [blame] | 31 | |
| 32 | ## Contribute |
| 33 | |
| 34 | Gerrit is the work of hundreds of contributors. We appreciate your help! |
David Pursehouse | ec716e0 | 2015-06-30 08:22:26 +0000 | [diff] [blame] | 35 | |
| 36 | Please read the [contribution guidelines](https://gerrit.googlesource.com/gerrit/+/master/SUBMITTING_PATCHES). |
| 37 | |
| 38 | Note that we do not accept Pull Requests via the Github mirror. |
David Ostrovsky | 0e5a1c3 | 2015-06-14 22:37:32 +0200 | [diff] [blame] | 39 | |
| 40 | ## Getting in contact |
| 41 | |
David Pursehouse | ec716e0 | 2015-06-30 08:22:26 +0000 | [diff] [blame] | 42 | The IRC channel on freenode is #gerrit. An archive is available at: |
| 43 | [echelog.com](http://echelog.com/logs/browse/gerrit). |
| 44 | |
| 45 | The Developer Mailing list is [repo-discuss on Google Groups](https://groups.google.com/forum/#!forum/repo-discuss). |
David Ostrovsky | 0e5a1c3 | 2015-06-14 22:37:32 +0200 | [diff] [blame] | 46 | |
| 47 | ## License |
| 48 | |
| 49 | Gerrit is provided under the Apache License 2.0. |
| 50 | |
| 51 | ## Build |
| 52 | |
David Ostrovsky | fdbfcad | 2016-11-15 06:35:29 -0800 | [diff] [blame] | 53 | Install [Bazel](https://bazel.build/versions/master/docs/install.html) and run the following: |
David Ostrovsky | 0e5a1c3 | 2015-06-14 22:37:32 +0200 | [diff] [blame] | 54 | |
| 55 | git clone --recursive https://gerrit.googlesource.com/gerrit |
David Ostrovsky | fdbfcad | 2016-11-15 06:35:29 -0800 | [diff] [blame] | 56 | cd gerrit && bazel build release |
David Ostrovsky | 0e5a1c3 | 2015-06-14 22:37:32 +0200 | [diff] [blame] | 57 | |
| 58 | ## Install binary packages (Deb/Rpm) |
| 59 | |
| 60 | The instruction how to configure GerritForge/BinTray repositories is |
| 61 | [here](http://gitenterprise.me/2015/02/27/gerrit-2-10-rpm-and-debian-packages-available) |
| 62 | |
| 63 | On Debian/Ubuntu run: |
| 64 | |
| 65 | apt-get update & apt-get install gerrit=<version>-<release> |
| 66 | |
| 67 | _NOTE: release is a counter that starts with 1 and indicates the number of packages that have |
| 68 | been released with the same version of the software._ |
| 69 | |
| 70 | On CentOS/RedHat run: |
| 71 | |
| 72 | yum clean all && yum install gerrit-<version>[-<release>] |
| 73 | |
Luca Milanesio | 1c16099 | 2016-10-27 08:27:54 +0100 | [diff] [blame] | 74 | On Fedora run: |
| 75 | |
| 76 | dnf clean all && dnf install gerrit-<version>[-<release>] |
| 77 | |
| 78 | ## Use pre-built Gerrit images on Docker |
| 79 | |
| 80 | Docker images of Gerrit are available on [DockerHub](https://hub.docker.com/u/gerritforge/) |
| 81 | |
| 82 | To run a CentOS 7 based Gerrit image: |
| 83 | |
| 84 | docker run -p 8080:8080 gerritforge/gerrit-centos7[:version] |
| 85 | |
| 86 | To run a Ubuntu 15.04 based Gerrit image: |
| 87 | |
| 88 | docker run -p 8080:8080 gerritforge/gerrit-ubuntu15.04[:version] |
| 89 | |
David Ostrovsky | 0e5a1c3 | 2015-06-14 22:37:32 +0200 | [diff] [blame] | 90 | _NOTE: release is optional. Last released package of the version is installed if the release |
| 91 | number is omitted._ |