User:Awdelyea/BuildbotEC2

From MozillaWiki
Jump to: navigation, search

Buildbot on EC2

This is an extension for Buildbot that will allow it to automatically launch EC2 instances to use for building.

It is a project that started at Seneca College's Open Source course.

In the 'master.cfg', you can specify how many instances you would like to start, simply by adding in more EC2BuildSlaves into the build slave list.

How To Use

Installation

You need to have Buildbot installed. For information, see [1]. You could also look here as well.

For this to work, you need to use to the boto library. Download here

You will also need to download the extention, located here

Put the boto folder from the boto-0.9a.tar.gz into your buildmaster directory.

Also, put the extension into the buildmaster home folder.

...And thats it!

Configuration

When you are setting up the buildmaster, use port 12345.

In your buildmaster's master.cfg, you need to specify how many build slaves you would like to use, just like you would normally.

Instead of using a regular BuildSlave, you will use an EC2BuildSlave, like this:

   from buildbot.EC2BuildSlave import EC2BuildSlave
   c['slaves'] = [EC2BuildSlave("bot1name", "bot1passwd", "public key", "private key", "DNS / IP Address")]

Public Key is your public key from your Amazon EC2 account.

Private Key is your private key from your Amazon EC2 account.

You also need to specify your buildmaster's IP address. (Note: make sure that you have your router forwarding port 12345 to your computer, if you are using a router that is).

Once all thats done, you should be able to start building using your EC2BuildSlaves.