A clone from https://github.com/openfrontier/docker-gerrit.git, slightly modified.
994
The Gerrit code review system with PostgreSQL and OpenLDAP integration supported.
`$ docker run -d -p 8080:8080 -p 29418:29418 openfrontier/gerrit`
`docker run --name gerrit_volume openfrontier/gerrit echo "Gerrit volume container."`
`docker run -d --volumes-from gerrit_volume -p 8080:8080 -p 29418:29418 openfrontier/gerrit`
`mkdir ~/gerrit_volume`
`docker run -d -v ~/gerrit_volume:/var/gerrit/review_site -p 8080:8080 -p 29418:29418 openfrontier/gerrit`
#####All attributes in gerrit.config ldap section is supported.
#Start postgres docker
docker run --name pg-gerrit -p 5432:5432 -e POSTGRES_USER=gerrit2 -e POSTGRES_PASSWORD=gerrit -e POSTGRES_DB=reviewdb -d postgres
#Start gerrit docker
docker run --name gerrit --link pg-gerrit:db -p 8080:8080 -p 29418:29418 WEBURL=http://<your.site.url>:8080 -e DATABASE_TYPE=postgresql -e AUTH_TYPE=LDAP -e LDAP_SERVER=<ldap-servername> -e LDAP_ACCOUNTBASE=<ldap-basedn> openfrontier/gerrit
Sample scripts to create or destroy this Gerrit container are located at openfrontier/gerrit-docker project.
A Jenkins docker image with some sample scripts to integrate with this Gerrit image can be found here.
There's an upper project which privdes sample scripts about how to use this image and a Jenkins image to create a Gerrit-Jenkins integration environment.
docker run -d -p 8080:8080 -p 29418:29418 -v /etc/localtime:/etc/localtime:ro openfrontier/gerrit
Content type
Image
Digest
sha256:3ae3983af…
Size
-
Last updated
almost 11 years ago
docker pull kfmaster/gerrit