Skip to content

Instantly share code, notes, and snippets.

@SilverShades02
Created December 6, 2018 11:52
Show Gist options
  • Save SilverShades02/06518e1c41217047baf9d34db85b592c to your computer and use it in GitHub Desktop.
Save SilverShades02/06518e1c41217047baf9d34db85b592c to your computer and use it in GitHub Desktop.
Using secure store: com.google.gerrit.server.securestore.DefaultSecureStore
[2016-05-04 18:38:32,750] [main] INFO com.google.gerrit.server.config.GerritServerConfigProvider : No /home/gerrit/./etc/gerrit.config; assuming defaults
*** Gerrit Code Review 2.12.2
***
*** Git Repositories
***
Location of Git repositories [git]: {Press enter}
*** SQL Database
***
Database server type [h2]: mysql
Gerrit Code Review is not shipped with MySQL Connector/J 5.x
** This library is required for your configuration. **
Download and install it now [Y/n]? {Press enter}
Downloading http://repo2.maven.org/maven2/mysql/mysql-connector-java/5.x/mysql-connector-java-5.x.jar ... OK
Checksum mysql-connector-java-5.1.10.jar OK
Server hostname [localhost]: {Press enter}
Server port [(mysql default)]: {Press enter}
Database name [reviewdb]: {Press enter}
Database username [root]: gerrit
gerrit's password :
confirm password :
*** Index
***
Type [LUCENE/?]: {Press enter}
The index must be rebuilt before starting Gerrit: {Press enter}
java -jar gerrit.war reindex -d site_path
*** User Authentication
***
Authentication method [OPENID/?]: http
Get username from custom HTTP header [y/N]? y
Username HTTP header [SM_USER]: GITHUB_USER
SSO logout URL : {Press enter}
Enable signed push support [y/N]? {Press enter}
*** Review Labels
***
Install Verified label [y/N]? {Press enter}
*** Email Delivery
***
SMTP server hostname [localhost]: smtp.gmail.com
SMTP server port [(default)]: 587
SMTP encryption [NONE/?]: TLS
SMTP username [root]: {enter your or your organisation's email id}
aexgerrit@gmail.com's password :
confirm password :
*** Container Process
***
Run as [root]: gerrit
Java runtime [/usr/lib/jvm/java-7-openjdk-amd64/jre]: {Press enter}
Copy gerrit-2.12.2.war to ./bin/gerrit.war [Y/n]? {Press enter}
Copying gerrit-2.12.2.war to ./bin/gerrit.war
*** SSH Daemon
***
Listen on address[*]:
Listen on port [29418]: {Press enter}
Gerrit Code Review is not shipped with Bouncy Castle Crypto SSL v152
If available, Gerrit can take advantage of features
in the library, but will also function without it.
Download and install it now [Y/n]? n
Generating SSH host key ... rsa(simple)... done
*** HTTP Daemon
***
Behind reverse proxy [y/N]? {Press enter}
Use SSL (https://) [y/N]? {Press enter}
Listen on address[*]:
Listen on port [8080]: {Press enter}
Canonical URL []: {enter the domain name which u have used in creating github oauth app}
*** Plugins
***
Installing plugins.
Install plugin singleusergroup version v2.12.2 [y/N]? y
Install plugin commit-message-length-validator version v2.12.2 [y/N]? y
Install plugin reviewnotes version v2.12.2 [y/N]? y
Install plugin replication version v2.12.2 [y/N]? y
Install plugin download-commands version v2.12.2 [y/N]? y
Initializing plugins.
*** GitHub Integration
***
GitHub URL [https://github.com]: {Press enter}
GitHub API URL [https://api.github.com]: {Press enter}
NOTE: You might need to configure a proxy using http.proxy if you run Gerrit behind a firewall.
*** GitHub OAuth registration and credentials
***
Register Gerrit as GitHub application on:
https://github.com/settings/applications/new
Settings (assumed Gerrit URL:
* Application name: Gerrit Code Review
* Homepage URL:
* Authorization callback URL:
After registration is complete, enter the generated OAuth credentials:
GitHub Client ID : (ENTER THE APPLICATION CLIENT ID)
GitHub Client Secret : (ENTER THE APPLICATION CLIENT SECRET)
confirm password : (REENTER THE APPLICATION CLIENT SECRET)
Gerrit OAuth implementation [HTTP/?]: http
HTTP Authentication Header [GITHUB_USER]: {Press enter}
Initialized /home/gerritUsing secure store: com.google.gerrit.server.securestore.DefaultSecureStore
[2016-05-04 18:38:32,750] [main] INFO com.google.gerrit.server.config.GerritServerConfigProvider : No /home/gerrit/./etc/gerrit.config; assuming defaults
*** Gerrit Code Review 2.12.2
***
*** Git Repositories
***
Location of Git repositories [git]: {Press enter}
*** SQL Database
***
Database server type [h2]: mysql
Gerrit Code Review is not shipped with MySQL Connector/J 5.x
** This library is required for your configuration. **
Download and install it now [Y/n]? {Press enter}
Downloading http://repo2.maven.org/maven2/mysql/mysql-connector-java/5.x/mysql-connector-java-5.x.jar ... OK
Checksum mysql-connector-java-5.1.10.jar OK
Server hostname [localhost]: {Press enter}
Server port [(mysql default)]: {Press enter}
Database name [reviewdb]: {Press enter}
Database username [root]: gerrit
gerrit's password :
confirm password :
*** Index
***
Type [LUCENE/?]: {Press enter}
The index must be rebuilt before starting Gerrit: {Press enter}
java -jar gerrit.war reindex -d site_path
*** User Authentication
***
Authentication method [OPENID/?]: http
Get username from custom HTTP header [y/N]? y
Username HTTP header [SM_USER]: GITHUB_USER
SSO logout URL : {Press enter}
Enable signed push support [y/N]? {Press enter}
*** Review Labels
***
Install Verified label [y/N]? {Press enter}
*** Email Delivery
***
SMTP server hostname [localhost]: smtp.gmail.com
SMTP server port [(default)]: 587
SMTP encryption [NONE/?]: TLS
SMTP username [root]: {enter your or your organisation's email id}
aexgerrit@gmail.com's password :
confirm password :
*** Container Process
***
Run as [root]: gerrit
Java runtime [/usr/lib/jvm/java-7-openjdk-amd64/jre]: {Press enter}
Copy gerrit-2.12.2.war to ./bin/gerrit.war [Y/n]? {Press enter}
Copying gerrit-2.12.2.war to ./bin/gerrit.war
*** SSH Daemon
***
Listen on address[*]:
Listen on port [29418]: {Press enter}
Gerrit Code Review is not shipped with Bouncy Castle Crypto SSL v152
If available, Gerrit can take advantage of features
in the library, but will also function without it.
Download and install it now [Y/n]? n
Generating SSH host key ... rsa(simple)... done
*** HTTP Daemon
***
Behind reverse proxy [y/N]? {Press enter}
Use SSL (https://) [y/N]? {Press enter}
Listen on address[*]:
Listen on port [8080]: {Press enter}
Canonical URL []: {enter the domain name which u have used in creating github oauth app}
*** Plugins
***
Installing plugins.
Install plugin singleusergroup version v2.12.2 [y/N]? y
Install plugin commit-message-length-validator version v2.12.2 [y/N]? y
Install plugin reviewnotes version v2.12.2 [y/N]? y
Install plugin replication version v2.12.2 [y/N]? y
Install plugin download-commands version v2.12.2 [y/N]? y
Initializing plugins.
*** GitHub Integration
***
GitHub URL [https://github.com]: {Press enter}
GitHub API URL [https://api.github.com]: {Press enter}
NOTE: You might need to configure a proxy using http.proxy if you run Gerrit behind a firewall.
*** GitHub OAuth registration and credentials
***
Register Gerrit as GitHub application on:
https://github.com/settings/applications/new
Settings (assumed Gerrit URL:
* Application name: Gerrit Code Review
* Homepage URL:
* Authorization callback URL:
After registration is complete, enter the generated OAuth credentials:
GitHub Client ID : (ENTER THE APPLICATION CLIENT ID)
GitHub Client Secret : (ENTER THE APPLICATION CLIENT SECRET)
confirm password : (REENTER THE APPLICATION CLIENT SECRET)
Gerrit OAuth implementation [HTTP/?]: http
HTTP Authentication Header [GITHUB_USER]: {Press enter}
Initialized /home/gerrit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment