[users at bb.net] Daemonized buildbot start

Tomasz Urbański utom.pl at gmail.com
Sun Dec 25 13:31:51 UTC 2016


Hi,
I'm trying to compose the simplest possible docker master image that runs
buildbot start in ENTRYPOINT/CMD.
I've tried to use a lot of combinations of 'dumb-init', 'gosu' and 'exec',
but with no success.
The situation is as follows:
1) When I try to run deamonized buildroot with the command 'docker run -d
-v $local/vol/bldbot/master:/var/lib/buildbot buildbot-master-test ', the
container starts successfully, but is is terminated abruptly. The log looks
as follows:

[timestamp] [-] Log opened.
[timestamp] [-] twistd 16.0.0 (/usr/bin/python 2.7.12) starting up.
[timestamp] [-] reactor class: twisted.internet.epollreactor.EPollReactor.
[timestamp] [-] Starting BuildMaster -- buildbot.version: 0.9.2
[timestamp] [-] Loading configuration from '/var/lib/buildbot/master.cfg'
[timestamp] [-] Setting up database with URL 'sqlite:/state.sqlite'
[timestamp] [-] setting database journal mode to 'wal'
[timestamp] [-] doing housekeeping for master 1
c8aa8b0d5ca3:/var/lib/buildbot
[timestamp] [-] adding 1 new changesources, removing 0
[timestamp] [-] adding 1 new builders, removing 0
[timestamp] [-] adding 2 new schedulers, removing 0
[timestamp] [-] No web server configured on this master
[timestamp] [-] adding 1 new workers, removing 0
[timestamp] [-] PBServerFactory starting on 9989
[timestamp] [-] Starting factory <twisted.spread.pb.PBServerFactory
instance at 0x7f2cca079b00>
[timestamp] [-] BuildMaster is running

2) When I run the container in the interactive mode with the command
'docker run --rm -it -v $local/vol/bldbot/master:/var/lib/buildbot
buildbot-master-test  /bin/sh' and next I run the command 'buildbot start'
all works like charm.

I've already studied the content of official buildbot master docker image,
tj.  'buildbot/buildbot-master'. I see that authors decided to use the
command 'exec twistd -ny $B/buildbot.tac' in start_buildbot.sh.

So the question is, how to compose the ENTRYPOINT/CMD instructions in the
Dockerfile that runs simply buildbot start.

See also discussion and further details on Stack Overflow
<http://stackoverflow.com/questions/41299608/daemonized-buildbot-start>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20161225/d1962da0/attachment.html>


More information about the users mailing list