-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.txt
67 lines (46 loc) · 1.7 KB
/
README.txt
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
Automated Gerrit install using Vagrant
Warning: this project is a bit broken
Automatically downloads a CentOS VM image, starts it up using VirtualBox and runs a shell script which installs and configures Gerrit
(requires x64 host machine)
Install Oracle VirtualBox for your host operating system
https://www.virtualbox.org/wiki/Downloads
Install Vagrant for your host operating system
http://downloads.vagrantup.com/
Run the example:
# Download the Vagrant and configuration files from my repository
git clone https://github.com/mattcoffey/vagrant.git
cd vagrant
# Download and startup the CentOS x64 VM and run puppet manifest
vagrant up
# Gerrit should now be running - check access to http://172.28.128.2:8080/
# Click Become (top right)
# Click New Account (bottom)
# Enter full name, register an email and click Save Changes
# Enter your local operating system username for the Administrator/Developer test account
# Copy your ssh public key to clipboard:
pbcopy < ~/.ssh/id_rsa.pub
# Paste it into Add SSH Public Key
# Click Add
# Add Verified Label to All-Projects
./addVerifiedLabel.sh
# Give Non Interactive Users to score the Verified Label
# Click Projects -> All-Projects -> Access -> Click Edit
# In the box headed "Reference: refs/heads/*" Click Add Permission and select Label Verified
# Under the new Label Verified Click Add Group select Non-Interactive Users
# Click Save Changes at the bottom
Gerrit
Start:
~/gerrit/bin/gerrit.sh start
Log:
/home/gerrit2/gerrit/logs/error_log
Config:
/home/gerrit2/gerrit/etc/gerrit.config
Jenkins
Start:
service jenkins start
Log:
/var/log/jenkins/jenkins.log
Config:
/etc/sysconfig/jenkins
# Ssh into the newly started VM and see custom welcome message
vagrant ssh