File: pybit-client.1

package info (click to toggle)
pybit 1.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,512 kB
  • sloc: python: 5,088; xml: 497; sh: 411; perl: 349; sql: 197; makefile: 82
file content (318 lines) | stat: -rw-r--r-- 9,569 bytes parent folder | download | duplicates (3)
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
'\" t
.\"     Title: pybit-client
.\"    Author: [see the "Author" section]
.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
.\"      Date: 02/15/2013
.\"    Manual: pybit-client
.\"    Source: November 2012
.\"  Language: English
.\"
.TH "PYBIT\-CLIENT" "1" "02/15/2013" "November 2012" "pybit\-client"
.\" -----------------------------------------------------------------
.\" * 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-client \- buildd client script to perform build jobs using pybit queues\&.
.SH "SYNOPSIS"
.HP \w'\fBpybit\-client\fR\ 'u
\fBpybit\-client\fR [\fIoptions\fR]
.SH "DESCRIPTION"
.PP
pybit\-client receives messages from the controller to create a specific package build using the specified version control system\&. The client feeds status messages back to the controller\&.
.SH "USAGE"
.PP
pybit\-client runs as a single\-instance daemon by default\&. The standard daemon control interface is supported:
.sp
.if n \{\
.RS 4
.\}
.nf
invoke\-rc\&.d pybit\-client stop
invoke\-rc\&.d pybit\-client start
update\-rc\&.d pybit\-client disable
update\-rc\&.d pybit\-client enable
.fi
.if n \{\
.RE
.\}
.SH "DAEMON CONFIGURATION"
.PP
Certain values are set using
\fIdebconf\fR
at package installation but values can also be set in
/etc/pybit/client/client\&.conf
and the relevant debconf settings can be updated using
\fIdpkg\-reconfigure pybit\-client\fR\&. The configuration file is in JSON format\&.
.PP
\fIclientid\fR
\- The clientid string for this client (must not be empty and needs to be unique for each client using any one RabbitMQ server)\&.
.PP
\fIhost_arch\fR
\- The native architecture of this client, e\&.g\&. i386\&.
.sp
.if n \{\
.RS 4
.\}
.nf
dpkg\-architecture \-qDEB_BUILD_ARCH
.fi
.if n \{\
.RE
.\}
.PP
\fIuse_lvm\fR
\- Whether lvm snapshots are in use (default is true)\&.
.PP
\fIdistribution\fR
\- The distribution in use\&. e\&.g\&. Debian\&.
.sp
.if n \{\
.RS 4
.\}
.nf
dpkg\-vendor \-\-query vendor
.fi
.if n \{\
.RE
.\}
.PP
\fIpkg_format\fR
\- Tag used by each build client to screen out unsupported binary build formats, e\&.g\&. Debian clients will check for deb and RPM clients would check for rpm\&.
.PP
\fIbuildroot\fR
\- The buildd location on the client filesystem\&. Default:
/home/buildd/pybit
.PP
\fIhost\fR
\- The location of the RabbitMQ server which sends the build messages\&. This can be omitted during initial setup and testing but needs to be specified and the client restarted or no builds will be started\&.
.PP
\fIport\fR
\- Override the standard port of 5672 for the RabbitMQ server\&.
.PP
\fIsuites\fR
\-
\fINEW in 0\&.4\&.1\fR
JSON list of the suites which this client can support \- names must match the Distribution: specified in the changelog of relevant packages and must also match an alias for a configured schroot chroot\&.
.sp
.if n \{\
.RS 4
.\}
.nf
 "suites": [ "unstable" ],
.fi
.if n \{\
.RE
.\}
.sp
.if n \{\
.RS 4
.\}
.nf
 "suites": [ "unstable", "squeeze\-backports" ],
.fi
.if n \{\
.RE
.\}
.PP
The
\fIsuite\fR
field used in 0\&.4\&.0 has been removed \- clients will not start unless at least one suite is specified in the
\fIsuites\fR
list\&. See also
/usr/share/pybitclient/client\&.conf
.PP
\fIuserid\fR
\- If the RabbitMQ server uses authentication, override the default username of
\fIguest\fR\&.
.PP
\fIpassword\fR
\- If the RabbitMQ server uses authentication, override the default password of
\fIguest\fR\&.
.PP
\fIvhost\fR
\- If the RabbitMQ server uses a specific VHost, override the default of
\fI/\fR\&.
.PP
\fIdput\fR
\- options passed down to dput \- see dput (1)\&. The default is
\fI\-U\fR
to stop dput writing \&.upload files\&.
.PP
\fIdput_dest\fR
\- The codename of the location to upload the built packages (must not be empty as the default for dput is typically to upload to ftp\-master\&.debian\&.org)\&.
.PP
\fIpoll_time\fR
\- frequency with which this client checks the queues for new messages\&. Measured in seconds\&. Default: 60 seconds\&.
.PP
\fIdebsignkey\fR
\- keyID to be used to sign the \&.changes files from this buildd\&. If empty or omitted, changes files will never be signed\&.
\fIThe specified key MUST NOT use a passphrase\&.\fR
The key must be usable by the user running
\fBpybit\-client\fR
\- check with
.sp
.if n \{\
.RS 4
.\}
.nf
gpg \-\-list\-secret\-keys
    
.fi
.if n \{\
.RE
.\}
.PP
\fIdry_run\fR
\- initially, clients are setup in dry run mode which means that commands are echoed to the terminal instead of being executed, to allow testing of new setups\&. To enable builds on the client, edit
/etc/pybit/client/client\&.conf
to change the value for dry_run to false\&.
.SH "SCHROOT CONFIGURATION"
.PP
The detailed process of creating chroots suitable for schroot is covered in the sbuild documentation (schroot\&.conf (5)) and amounts to using a tool like debootstrap to create a Debian build environment in a subdirectory (which may or may not be also the mountpoint of an LVM snapshot) and then configuring that chroot to have the relevant apt sources and pre\-installed packages (e\&.g\&. build\-essential and dpkg\-dev)\&.
.PP
Note: when creating a chroot for schroot, remember to use the
\fB\-\-variant=buildd\fR
option to
debootstrap
and install
fakeroot
inside the chroot\&.
.SS "Install pbuilder"
.PP
The pybit debianclient uses
/usr/lib/pbuilder/pbuilder\-satisfydepends\-classic
for the dependency resolution test, so the pbuilder package needs to be installed inside each build chroot\&.
.SS "Naming the chroots"
.PP
The pybit client will expect to be able to use a chroot (or an alias for a chroot) which matches the suite specified in the build request\&. If using version control hooks, this suite is likely to come from the Distribution field of the output of
\fIdpkg\-parsechangelog\fR\&. Ensure that any client has a suitable chroot listed in the output of
\fIschroot \-l\fR\&.
.PP

\fBpybit\-client\fR
only listens to queues which match the listed
\fIsuites\fR
in
/etc/pybit/client/client\&.conf\&.
.PP
The syntax for the suites configuration value changed in version 0\&.4\&.1 to support multiple suites within a JSON list:
.sp
.if n \{\
.RS 4
.\}
.nf
 "suites": [ "unstable", "squeeze\-backports" ],
.fi
.if n \{\
.RE
.\}
.PP
Clients running 0\&.4\&.0 need to have the configuration file updated for 0\&.4\&.1 or the client will fail to start as it will be unable to bind to the necessary queues\&.
.SS "Testing the chroots"
.PP
There is a test script (/usr/share/pybitclient/buildd\-test\&.py) which can be used alongside a test schroot to run through the buildd commands and then do the upload\&. (What happens to that upload is dependent on the next step, it just sits in an incoming directory initially\&.)
.SS "Configuring the upload handler"
.PP
Set up dput by editing
/etc/pybit/client/dput\&.cf
to provide a usable upload configuration\&. The format of this file is the same as ~/\&.dput\&.cf and is passed to dput using the \-c option internally\&. See dput\&.cf (5)
.SH "OPTIONS"
.PP
\fB\-h\fR, \fB\-\-help\fR
.RS 4
show this help message and exit
.RE
.PP
\fB\-\-conf_file\fR=\fICONF_FILE\fR
.RS 4
Configuration file from which settings can be read\&. Defaults to
configs/client\&.conf
from the current working directory or falls back to
/etc/pybit/client/client\&.conf\&.
.RE
.PP
\fB\-\-arch\fR=\fIARCH\fR
.RS 4
Architecture to use, defaults to i386
.RE
.PP
\fB\-d\fR
.RS 4
Run this client as a daemon \- default option used by
/etc/init\&.d/pybit\-client\&.
.RE
.PP
\fB\-\-distribution\fR=\fIPYBIT_CLIENT_DIST\fR
.RS 4
Distribution to use, defaults to Debian
.RE
.PP
\fB\-\-pkg_format\fR=\fIPYBIT_CLIENT_FORMAT\fR
.RS 4
Package type to use, defaults to deb
.RE
.PP
\fB\-\-suite\fR=\fIPYBIT_CLIENT_SUITE\fR
.RS 4
Suite to use, defaults to development
.RE
.PP
\fB\-\-host\fR=\fIPYBIT_CLIENT_HOST\fR
.RS 4
host to connect to, defaults to localhost\&.
.RE
.PP
\fB\-\-vhost\fR=\fIPYBIT_CLIENT_VHOST\fR
.RS 4
vhost to connect to, defaults to localhost\&.
.RE
.PP
\fB\-\-userid\fR=\fIPYBIT_CLIENT_USERID\fR
.RS 4
user id to use for AMQP server, defaults to guest\&.
.RE
.PP
\fB\-\-port\fR=\fIPYBIT_CLIENT_PORT\fR
.RS 4
port to use for AMQP server, defaults to 5672
.RE
.PP
\fB\-\-password\fR=\fIPYBIT_CLIENT_PASSWORD\fR
.RS 4
password to use for AMQP server, defaults to guest
.RE
.PP
\fB\-\-insist\fR=\fIPYBIT_CLIENT_INSIST\fR
.RS 4
insist to use for AMQP server, defaults to 5672
.RE
.PP
\fB\-\-clientid\fR=\fIPYBIT_CLIENT_INSIST\fR
.RS 4
id to use for build\-client control queue, defaults to 1 but is unique per amqp server\&.
.RE
<refsect>
      
      .PP
The clients are only one part of pybit\&. pybit\-web provides the server which will provide jobs for the clients\&. See pybit\-web (1)\&.

  </refsect>.SH "AUTHOR"
.PP
This manual page was written by Neil Williams
codehelp@debian\&.org