Build a Docker image with the Gerrit code review system.
- Initialize and start gerrit.
$ docker run -d -p 8080:8080 -p 29418:29418 socialwifi/gerrit
- Open your browser to http://:9000
- Create a volume container.
$ docker run --name gerrit_volume socialwifi/gerrit echo "Gerrit volume container."
- Initialize and start gerrit using volume created above.
$ docker run -d --volumes-from gerrit_volume -p 8080:8080 -p 29418:29418 socialwifi/gerrit
- Create a site directory for the gerrit site.
$ mkdir ~/gerrit_volume
- Initialize and start gerrit using the local directory created above.
$ docker run -d -v ~/gerrit_volume:/var/gerrit/review_site -p 8080:8080 -p 29418:29418 socialwifi/gerrit
- Timezone is UTC.