'\" t .\" Title: pybit-web .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 04/06/2018 .\" Manual: pybit-web .\" Source: January 2013 .\" Language: English .\" .TH "PYBIT\-WEB" "1" "04/06/2018" "January 2013" "pybit\-web" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" pybit-web \- buildd server to isuse build jobs to pybit clients\&. .SH "DESCRIPTION" .PP pybit\-web provides a database connection and the controller to send messages to pybit clients to create a specific package build using the specified version control system\&. The client feeds status messages back to the controller which are displayed via the web interface\&. .SH "SETTING UP THE PYBIT\-WEB SERVER" .PP The Debian packaging of pybit\-web uses dbconfig\-common to configure the database\&. .PP For a local postgres instance, choose the unix socket option and the default ident authentication, then postgres as the database administrative user and www\-data as the pybit\-web database user\&. You can use whatever name you prefer for the pybit\-web database itself\&. .PP Note: Ensure that the www\-data user is specified or apache will not be granted permission to use the database connection\&. It\*(Aqs not enough to just set the user to www\-data in /etc/pybit/web/web\&.conf \- this setting is correct but needs postgres to be configured to allow access to www\-data\&. .PP Also check that the pybit\-web database owner is set to www\-data and that all the tables in the database have the owner set to www\-data\&. Use ALTER DATABASE OWNER name TO "www\-data" and ALTER TABLE name OWNER to "www\-data" if necessary\&. .SH "BLACKLISTING PACKAGES" .PP Sometimes there will be packages being committed to the VCS with updated debian/changelog files but which either cannot or should not be built automatically\&. .PP pybit\-web supports a postgres table called Blacklist, with fields "field" and "regex"\&. Blacklist is used internally by process_job() in controller to determine if certain packages are centrally blacklisted using regexes\&. If there is a match on the field in question, pybit\-web will not issue a build request for this package\&. process_job() is called by both the WebGUI and the VCS hook\&. .PP For example "name" and "(\&.*\-dev)" will mean we do not autobuild any development packages, while "vcs_uri" and "(\&.*/users/*)" will block sources from locations such as /repo/users/jamesb/somebadcode .PP The controller log will print "BLACKLISTED! \- [regex] matches [fieldname]:[data]" if a package is blacklisted\&. .PP A 403 will be returned, as well as a False, from process_job to its caller (previously it returned void) .SH "SEE ALSO" .PP The pybit wiki has more information on setting up the server as well as the rabbitmq server and the watcher\&. https://github\&.com/nicholasdavidson/pybit/wiki/Server\-Setup .SH "AUTHOR" .PP This manual page was written by Neil Williams