Difference between revisions of "User:Esden/buildbot slave"

From PaparazziUAV
Jump to navigation Jump to search
Line 26: Line 26:
  sudo aptitude install buildbot-slave
  sudo aptitude install buildbot-slave


Configure the buildbot slave by pasting the following into <code>/etc/defaults/buildbot</code>:
Initialize buildbot slave directory:
cd /var/lib/buildbot/slaves
sudo buildslave create-slave paparazzi_uav_slave buildbot.paparazziuav.org:9989 '''yourslavename''' '''yourslavepassword'''
sudo chown -R buildbot:buildbot paparazzi_uav_slave
 
You should of course adjust the '''yourslavename''' and '''yourslavepassword''' to the real values that you can get from a paparazzi developer with access to the buildmaster server.
 
Configure the buildbot slave by pasting the following into <code>/etc/defaults/buildslave</code>:
<syntaxhighlight lang="python">
<syntaxhighlight lang="python">
buildmaster_host = 'buildbot.paparazziuav.org'
SLAVE_ENABLED[1]=1
port = 9989
SLAVE_NAME[1]="paparazzi uav slave"
slavename = 'yourslavename'
SLAVE_USER[1]="buildbot"
passwd = 'yourslavepassword'
SLAVE_BASEDIR[1]="/var/lib/buildbot/slaves/paparazzi_uav_slave"
keepalive = 600
SLAVE_OPTIONS[1]=""
usepty = 0
SLAVE_PREFIXCMD[1]=""
usmask = None
maxdelay = 300
allow_shutdown = None
</syntaxhighlight>
</syntaxhighlight>
You should of course adjust the '''yourslavename''' and '''slavepassword''' to the real values that you can get from a developer.

Revision as of 20:41, 21 September 2014

These are my own notes on the needed steps to install a buildbot slave instance. This is work in progress! So as always the typical disclaimers apply. It is probably incomplete and broken. :P

For ease of use you can now also copy over the .ssh/authorized_keys file

Update system:

sudo aptitude update
sudo aptitude safe-upgrade

Install usability stuff:

sudo aptitude install mosh zsh
wget -O .zshrc http://git.grml.org/f/grml-etc-core/etc/zsh/zshrc
chsh -s /usr/bin/zsh

Install paparazzi stuff:

sudo add-apt-repository ppa:paparazzi-uav/ppa
sudo aptitude update
sudo aptitude install paparazzi-dev paparazzi-jsbsim

Install gcc-arm-embedded:

sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded
sudo aptitude update
sudo aptitude install gcc-arm-none-eabi

Install buildbot slave:

sudo aptitude install buildbot-slave

Initialize buildbot slave directory:

cd /var/lib/buildbot/slaves
sudo buildslave create-slave paparazzi_uav_slave buildbot.paparazziuav.org:9989 yourslavename yourslavepassword
sudo chown -R buildbot:buildbot paparazzi_uav_slave

You should of course adjust the yourslavename and yourslavepassword to the real values that you can get from a paparazzi developer with access to the buildmaster server.

Configure the buildbot slave by pasting the following into /etc/defaults/buildslave:

SLAVE_ENABLED[1]=1
SLAVE_NAME[1]="paparazzi uav slave"
SLAVE_USER[1]="buildbot"
SLAVE_BASEDIR[1]="/var/lib/buildbot/slaves/paparazzi_uav_slave"
SLAVE_OPTIONS[1]=""
SLAVE_PREFIXCMD[1]=""