Sign inSign up

atavakoliyext/gerrit

By atavakoliyext

•Updated over 8 years ago

Gerrit Images with OAuth2.0 capabilities

Image
0

1.5K

atavakoliyext/gerrit repository overview

⁠Supported tags

  • 2.15_rc3, 2.15_rc3-alpine, alpine, latest
  • 2.15_rc3-ubuntu, ubuntu

⁠Quick reference

docker pull atavakoliyext/gerrit:<tag>
docker run \
  --name gerrit \
  --detach \
  --publish 127.0.0.1:<http-port>:8080 \
  --publish 127.0.0.1:<ssh-port>:24918 \
  --env GERRIT_URL=<web-url> \
 [--env GERRIT_LISTEN_SCHEME=<listen-scheme> \]
  --env GERRIT_OAUTH_CLIENT_ID=<client-id> \
  --env GERRIT_OAUTH_CLIENT_SECRET=<client-secret> \
 [--env GERRIT_JAVA_XMX=<max-memory> \]
  atavakoliyext/gerrit:<tag>

Where:

  • <http-port> is the port on the host to which HTTP should be sent
  • <ssh-port> is the port on the host to which SSH should be sent
  • <tag> is the the Docker image tag (e.g. alpine or ubuntu)
  • <web-url> is Gerrit's canonical web URL⁠
  • <listen-scheme> is the protocol scheme portion of Gerrit's listen URL⁠, which may need to be set if Gerrit is being hosted behind a reverse proxy⁠
  • <client-id> is Gerrit's OAuth2 client ID in Google Identity API
  • <client-secret> is Gerrit's OAuth2 client secret in Google Identity API
  • <max-memory> is the value passed into Java's -Xmx parameter when running Gerrit (default is 4096m if not provided)

Protip: You can put all your environment variables in one file and use the --env-file argument, rather than passing them in individually.

Tag summary

Content type

Image

Digest

Size

187.2 MB

Last updated

over 8 years ago

docker pull atavakoliyext/gerrit