summaryrefslogtreecommitdiff
path: root/gerritbot
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2012-11-28 16:55:47 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2012-11-28 16:55:47 +0100
commit3f5ca774f926b14e1482456150113120003151ee (patch)
treedf26597ab195d0e6062c602c2e2b649c70138aef /gerritbot
parent014c11414c44fae17643ff37c0bdd40f7c45ff1d (diff)
add gerritbot docs
Diffstat (limited to 'gerritbot')
-rw-r--r--gerritbot/README83
1 files changed, 83 insertions, 0 deletions
diff --git a/gerritbot/README b/gerritbot/README
new file mode 100644
index 00000000..d69f4355
--- /dev/null
+++ b/gerritbot/README
@@ -0,0 +1,83 @@
+gerritbot
+=========
+
+Installation
+------------
+
+To install gerritbot::
+
+* install prerequisites::
+
+ sudo apt-get install python getmail4 procmail
+
+* create a user gerritbot and log in as it::
+
+ sudo useradd -m gerritbot -s /bin/false
+ sudo bash
+ sudo gerritbot
+
+* get the source::
+
+ git clone http://cgit.freedesktop.org/libreoffice/contrib/dev-tools
+
+* link the files in the user root::
+
+ export HOME=/home/gerritbot
+ mkdir ~/.ssh
+ ln -s ~/dev-tools/gerritbot/.ssh/config -t .ssh
+ mkdir ~/.getmail
+ ln -s ~/dev-tools/gerritbot/getmailrc -t .getmail
+ ln -s ~/dev-tools/gerritbot/.procmailrc
+ ln -s ~/dev-tools/gerritbot/.muttrc #optional
+
+* add the private key for gerrit access to ~/.ssh/id_rsa::
+
+ - if the key was lost, a new one needs to be uploaded to gerrit
+ - the OpenID for it is: https://launchpad.net/~r-gerrit-0
+ - the OpenID is bound to gerrit@libreoffice.org
+
+* set the password for gerrit@libreoffice.org in .getmail/getmailrc
+
+* install the crontab::
+
+ crontab ~/dev-tools/gerritbot/crontab.txt
+
+* done
+
+
+Start
+-----
+
+::
+
+ crontab ~/dev-tools/gerritbot/crontab.txt
+
+
+Stop
+----
+
+::
+
+ install empty crontab
+
+Disable
+-------
+
+::
+
+ install empty crontab
+
+
+
+Enable
+------
+
+::
+
+ crontab ~/dev-tools/gerritbot/crontab.txt
+
+
+Responsible
+-----------
+
+Bjoern Michaelsen <bjoern.michaelsen@canonical.com>