Code Monkey home page Code Monkey logo

buildbot's Introduction

This directory contains Docker images for Clementine's buildbot.

Containers

  • master: Runs the buildbot master on port 8010. This port is also exposed on the host machine. All slaves connect to the master internally through docker over port 9989.

  • volumes: Data-only container that holds persistent state for the master and all the slaves. This is exposed as the /persistent-data directory in every container.

  • slave-*: Every supported distro has its own container that runs its own buildbot slave. The container has all the packages required to build Clementine.

Containers are built, started and stopped with docker-compose.

  1. First install docker-compose.

  2. Build the containers:

docker-compose build
  1. Then you can start and stop buildbot:
docker-compose up
docker-compose stop
  1. The master is then accessible on http://localhost:8010/.

Credentials

You need certain keys and credentials to be able to use certain builders. These builders will try to pull files from config/ when they run:

  • config/github_id_rsa: .ssh/id_rsa file used for authenticating to github. Used for pushing transifex commits to github.
  • config/passwords-external.json: Passwords for external (non-docker) slaves to connect to buildbot.
  • config/ppa-keys: Used by the PPA builders for uploading packages to PPAs. Get these keys with gpg --export-secret-keys.
  • config/transifexrc: The config file for the transifex client, including the password for the clementinebuildbot user.
  • config/android-remote-properties.txt: The properties file for building the android remote. Contains keystore, keystore.password, key.alias and key.password lines.
  • config/android-remote.keystore.jks: Keys for signing the android remote apk.

Adding new slaves

Replace vivid and 22 with the name of the Ubuntu distro or fedora version that you want to add.

  1. Create the i386 base images:
cd base
./build-fedora-i386.sh 22
./build-ubuntu-i386.sh debian jessie
./build-ubuntu-i386.sh ubuntu vivid
  1. Create the slave-${distro}-${version}-{32,64} directories by copying from the last distro versions and editing the two distro names in the Dockerfile

  2. Add the distro to config/config.json and run ./update_config.py

  3. Build the images and containers and start the slaves:

docker-compose build
docker-compose up
  1. See the builders on http://localhost:8010/builders.

Recreate an image and container

You might need to do this occasionaly to update a distro's packages.

docker-compose build --no-cache --pull slave-ubuntu-vivid-32
docker-compose up -d slave-ubuntu-vivid-32

View the master's log

docker-compose run --entrypoint tail master /persistent-data/master/twistd.log

buildbot's People

Contributors

amuttsch avatar asfaloth avatar davidsansome avatar friederbluemle avatar garciaadrian avatar hatstand avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.