[Buildbot] #2759: Make a Docker demo setup

Buildbot trac trac at buildbot.net
Sun Jun 8 21:41:34 UTC 2014

#2759: Make a Docker demo setup
Reporter:  dustin  |       Owner:  zeller
    Type:  task    |      Status:  accepted
Priority:  major   |   Milestone:  ongoing
 Version:  0.8.8   |  Resolution:
Keywords:  sprint  |

Comment (by dustin):

 So this dockerfile logs to stdout, making the logs visible with `docker
 logs`.  Something similar should work for the slave.  This also runs
 Buildbot as non-root (!).

 # Launch with: docker run -d -p 8010:8010 -p 9989:9989 --name="bb-master"
 FROM ubuntu:precise
 MAINTAINER John Zeller <johnlzeller at gmail.com>

 # Install base dependencies
 RUN apt-get -q update && apt-get -y -q install python-dev git python-pip
 sudo vim

 # Install Buildbot Master
 RUN pip install sqlalchemy==0.7.10 buildbot

 # Create a Master
 RUN buildbot create-master master
 RUN mv master/master.cfg.sample master/master.cfg
 RUN chown -R daemon /master

 # comment out the custom logging in buildbot.tac
 RUN sed -i -e 's!application.setComponent!#application.setComponent!'

 EXPOSE 9989 8010

 # Start Buildbot Master
 USER daemon
 CMD twistd --no_save -n --logfile=- --python=master/buildbot.tac

 However, port 8010 doesn't seem to be open for me.  If I connect to it, it
 closes right away.  I'm not really sure how to debug that!

Ticket URL: <http://trac.buildbot.net/ticket/2759#comment:17>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation

More information about the bugs mailing list