Git Product home page Git Product logo

docker-gerrit-jenkins's Introduction

Gerrit code review along with Jenkins CI service

Initialize and start the service

Step-1: Add YOUR config

Add config for SMTP server in gerrit.config at [sendemail] section, and the password for your configed email in secure.config at [sendemail] section.

You can change the server name (review.test.netease.com) in docker-compose.yaml and nginx.conf and gerrit.config to your custom server name(your-configed-server-name).

Step-2: Initialize Gerrit DB and Git repositories

docker-compose up -d postgres

Uncomment in docker-compose.yaml the Gerrit init step entrypoint and run Gerrit with docker-compose in foreground.

docker-compose up gerrit

Wait until you see in the output the message Initialized /var/gerrit and then the container will exit.

Note: Maybe you need to change the owner of directory gerrit to the user used by the gerrit image in some system (Debian for example), use docker run --rm $image_name id $user to get the uid and gid.

See Docker Gerrit Guide for complete instructions.

Step-3: Start the service

Comment out the gerrit init entrypoint in docker-compose.yaml and start all the docker-compose nodes:

docker-compose up -d

Step-4: Access Gerrit and Jenkins

You can access Gerrit at http://your-configed-server-name/gerrit (or http://your-configed-server-name/) and Jenkins in http://your-configed-server-name/jenkins.

Config Gerrit and Jenkins

See Gerrit Trigger.

docker-gerrit-jenkins's People

Contributors

zhihuij avatar

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.