My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions

Issue 2418 attachment: gerrit-install (4.0 KB)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
root@hisense-virtual-machine:/home/git/Gerrit# /etc/init.d/apache2 stop
* Stopping web server apache2
* The apache2 configtest failed, so we are trying to kill it manually. This is almost certainly suboptimal, so please make sure your system is working as you'd expect now!
... waiting . [ OK ]
root@hisense-virtual-machine:/home/git/Gerrit# review_site/bin/gerrit.sh stop
Stopping Gerrit Code Review: OK
root@hisense-virtual-machine:/home/git/Gerrit# ls
backup gerrit-2.6.1.war gerrit-2.6.war gerrit-2.7.rc.war gerrit-2.8.war passwords review_site
root@hisense-virtual-machine:/home/git/Gerrit# rm review_site/ -rf
root@hisense-virtual-machine:/home/git/Gerrit# su git
git@hisense-virtual-machine:~/Gerrit$ java -jar gerrit-2.6.1.war init -d review_site

*** Gerrit Code Review 2.6.1
***

Create '/home/git/Gerrit/review_site' [Y/n]? y

*** Git Repositories
***
Location of Git repositories [git]: /home/git/repositories

*** SQL Database
***

Database server type [h2]:

*** User Authentication
***

Authentication method [OPENID/?]: http
Get username from custom HTTP header [y/N]?
SSO logout URL :

*** Email Delivery
***

SMTP server hostname [localhost]:
SMTP server port [(default)]:
SMTP encryption [NONE/?]:
SMTP username :

*** Container Process
***

Run as [git]:
Java runtime [/usr/lib/jvm/java-6-sun-1.6.0.26/jre]:
Copy gerrit.war to /home/git/Gerrit/review_site/bin/gerrit.war [Y/n]? y
Copying gerrit.war to /home/git/Gerrit/review_site/bin/gerrit.war

*** SSH Daemon
***

Listen on address [*]:
Listen on port [29418]:

Gerrit Code Review is not shipped with Bouncy Castle Crypto v144
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]? y
Proxy uses SSL (https://) [y/N]? n
Subdirectory on proxy server [/]: http://192.168.130.11:8888/
Listen on address [*]:
Listen on port [8081]:
Canonical URL [http://null//192.168.130.11:8888/]:

*** Plugins
***

Prompt to install core plugins [y/N]? y
Install plugin reviewnotes version 2.6.1 [y/N]? y
Install plugin commit-message-length-validator version 2.6.1 [y/N]? y
Install plugin replication version 2.6.1 [y/N]? y

Initialized /home/git/Gerrit/review_site
git@hisense-virtual-machine:~/Gerrit$
git@hisense-virtual-machine:~/Gerrit$ touch review_site/etc/gerrit.passwd
git@hisense-virtual-machine:~/Gerrit$ htpasswd review_site/etc/gerrit.passwd gerrit
New password:
Re-type new password:
Adding password for user gerrit
git@hisense-virtual-machine:~/Gerrit$ vi review_site/etc/gerrit.config
[gerrit]
basePath = /home/git/repositories
canonicalWebUrl = http://192.168.130.11:8888/
[database]
type = h2
database = db/ReviewDB
[auth]
type = HTTP
[sendemail]
smtpServer = localhost
[container]
user = git
javaHome = /usr/lib/jvm/java-6-sun-1.6.0.26/jre
[sshd]
listenAddress = *:29418
[httpd]
listenUrl = proxy-http://192.168.130.11:8081/
[cache]
directory = cache
git@hisense-virtual-machine:~/Gerrit$ review_site/bin/gerrit.sh start
Starting Gerrit Code Review: OK
git@hisense-virtual-machine:~/Gerrit$ su
ÃÜÂ룺
root@hisense-virtual-machine:/home/git/Gerrit# /etc/init.d/apache2 restart
* Restarting web server apache2 [ OK ]
root@hisense-virtual-machine:/home/git/Gerrit#
Powered by Google Project Hosting