commit | 6680b191db7f440b97cf0c84928fb1b406421762 | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Wed Jan 21 16:57:13 2015 +0000 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Wed Jan 21 17:02:26 2015 +0000 |
tree | ff7b4a4c2306e0d8fef228eafa0658c834d79bc1 | |
parent | 7a7cf7400982fa59add2a95581bbc37117a3dd6c [diff] |
Enable custom-built packages (user/group/location) Automatically replace the USER, GROUP, GERRIT_SITE, VERSION during the packaging phase and on configuration files in order to create a fully automated custom-built package. Example: your company requires Gerrit 2.9.3 to be installed on /opt/gerrit under the user 'review' and group 'wheel'. $ make USER=review GROUP=wheel GERRIT_SITE=/opt/gerrit VERSION=2.9.3 Generates a package (rpm/deb) named: out/gerrit-2.9.3-1.noarch.(rpm|deb) Once installed, the gerrit package info is: Name : gerrit Arch : x86_64 Version : 2.9.3 Release : 1 Size : 39 M Repo : installed Summary : Gerrit Code Review URL : https://code.google.com/p/gerrit/ Licence : Apache 2.0 Description : Gerrit Code Review Change-Id: Ib64688fac867ff9bb069d6f7e5ab637c81b7e4e4
This project contains the native Gerrit installation packages for the most popular platforms:
fpm subdirectory contains the Makefile to create RPM and DEB packages for a basic Gerrit installation with the following options:
_
become_
any_
accountYou need to have a Linux with the FPM utility installed. Then execute the following steps from the cloned gerrit-installer project workspace:
RPM/DEBS gets created as fpm/out/gerrit-*.(deb|rpm)
FPM Makefile allows to customise the version and URL where Gerrit war gets downloaded. By overriding the VERSION variable it is possible to build any Gerrit version that is published on Google Releases Storage http://gerrit-releases.storage.googleapis.com/.
In order to build the package for Gerrit Ver. 2.9.4:
RPM/DEBS gets created as fpm/out/gerrit-2.9.4.(deb|rpm)
Gerrit 2.11/master branch is not published on Google Releases Storage, but is available on Gerrit Build Server under the permalink: http://ci.gerritforge.com/job/Gerrit-master/lastSuccessfulBuild/artifact/buck-out/gen/gerrit.war
In order to build the package for Gerrit Ver. 2.11/master:
RPM/DEBS gets created as fpm/out/gerrit-2.11.(deb|rpm)