Skip to content

samuelololol/BuildbotDocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BuildbotDocker

An buildbot CI environment, its goal is helping developer working with a tiny but powerful CI system. With every commits pushed, buildbot is triggered new build and records the test result on master portal.

Basic CI deployment:

Using prepared docker-composed.yml script to deploy a very simple CI environment.

basic deployment

With dockerized test plan:

Buildbot Slave has ability to create containers(on host) as well, so users could execute their custom dockerized test plan.

CI_with test deployment

Triggered by commit pushed:

Recreate containers for test every build.

triggered deployment

Requirement

  • Docker
  • Docker-compose
  • ssh-keys(optional if you're using private repository)
  • Platform: Linux (only tested on Linux)

How it works

The prepared docker-compose.yml uses pre-built docker image and mounts host docker.sock to enable creating container from container.

How to use

Download, edit and run.

Settings

  • master.cfg
  • buildbotdocker.py

These 2 files are main core settings for buildbot. The complicated settings are separately extracted from original master.cfg into master.cfg and buildbotdocker.py. To edit the settings, it is necessary for you to consider some aspects:

  1. Deploy scenario: Add deployment steps into builder. After git-pushed triggered, buildbot will pull latest source code and build. It is recommanded to create a clean docker environment and setup the project in it.
  2. Test scenario: Add test runner scripts into builder. You may launch test runner either on buildbot slave or on clean Docker container(s) created by buildbot slave.

How to launch

under construction.

About

custom buildbot environment in docker

Resources

License

Stars

Watchers

Forks

Packages

No packages published