Code Monkey home page Code Monkey logo

gerrit-installer's Introduction

Gerrit Native Installation Packages

This project contains the native Gerrit installation packages for the most popular platforms:

  • Linux (RPM and Debian packages)
  • MacOSX (DMG)
  • Windows (MSI)

Linux RPM/DEB

fpm subdirectory contains the Makefile to create RPM and DEB packages for a basic Gerrit installation with the following options:

  • site: /var/gerrit
  • user: gerrit
  • auth: development_become_any_account

How to build

You need to have a Linux with the FPM utility installed. Then execute the following steps from the cloned gerrit-installer project workspace:

  1. cd fpm
  2. make install

RPM/DEBS gets created as fpm/out/gerrit-*.(deb|rpm)

How to build other versions of Gerrit

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:

  1. cd fpm
  2. make VERSION=2.9.4 install

RPM/DEBS gets created as fpm/out/gerrit-2.9.4.(deb|rpm)

How to build Gerrit 2.11/master

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:

  1. cd fpm
  2. make URL=http://ci.gerritforge.com/job/Gerrit-master/lastSuccessfulBuild/artifact/buck-out/gen/gerrit.war VERSION=2.11

RPM/DEBS gets created as fpm/out/gerrit-2.11.(deb|rpm)

How to create a YUM repo server

If you wish to publish the RPMs to a custom or public YUM repo server, you need to sign the packages and create the associated yum.repo definition to be installed on the clients.

The yum-repo directory contains a Makefile that is designed to help you in automating the repo creation and client configuration.

In order to build a YUM repository you need to have already generated the RPMs as indicated in the previous steps and then execute:

  1. cd yum-repo
  2. make

A client RPM package will be generated under the client sub-directory and will need to be installed manually on the clients in order to configure your YUM repository.

A YUM repo structure will be generated under the server sub-directory and will need to be uploaded to your HTTP Web-Server or to a public repository service (e.g. BinTray or even GitHub).

NOTE: By default the yum-repo generated will use the GerritForge credentials. Should you need to publish your own repository you would need to generate your own PGP private/public keys and override the vendor's definitions.

In order to generate a customized vendor's settings for the yum-repo, you need to execute:

  1. gpg --gen-key [...] Real name: MyCompany Email address: [email protected] [...]
  2. gpg --export -a MyCompany > RPM-GPG-KEY-MyCompany
  3. cd yum-repo
  4. make VENDOR=MyCompany PGP_CERT="$(cat RPM-GPG-KEY-MyCompany)"

NOTE: The yum-repo settings are assuming that you are publishing the yum-repo server and make the URL listed on http://mirrorlist.mycompany.com/yum

gerrit-installer's People

Contributors

dpursehouse avatar geminicaprograms avatar lucamilanesio avatar marco-miller avatar paladox avatar sschuberth avatar zaro0508 avatar

Forkers

renovate-bot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.