GithubHelp home page GithubHelp logo

kitefactory's Introduction

Kitefactory

This is a framework to easily test Go-based applications a wide variety of native build targets, using the Buildkite CI platform. This is especially important when there are CGo components involved in the system. This could be easily adapted to other languages as well.

Thanks goes out to the boxcutter folks, for packer templates to get started with for some of the platforms.

Prerequisites

Depends on the following being available on the path:

  • curl
  • xz
  • Packer
  • Ansible

Provisioning (e.g. Image Generator) Stack

src/packer

Bootstrap VM creation (with QEMU) + provisioning with Ansible.

src/ansible

Provision target VM for running Buildkite agent as unprivileged user.

Using

You will need to set the following environment variables before building:

  • PROVISIONING_PASSWORD - password for the root account in the new VM
  • BUILDKITE_TOKEN - token given by Buildkite to configure the agent with

It is suggested to store them in secrets/$machine-type/env as shell variables, and then sourcing them. This will allow the Makefile to detect changes and do the right thing.

Run make machine-type where machine-type is in:

  • freebsd-11.0-amd64
  • freebsd-11.1-amd64
  • freebsd-11.1-i386
  • freebsd-11.2-amd64
  • freebsd-11.2-i386
  • debian-9.4.0-ppc64le
  • openbsd-6.3-amd64
  • openbsd-6.3-i386

Running

Take a look at the $machine-type-run target in the Makefile. This makes assumptions about the state of the VM host providing DHCP and routing of some type.

It might be helpful to install libvirt, and use either virt-manager, or virsh to attach and run multiple vms.

kitefactory's People

Contributors

derekmarcotte avatar superq avatar

Watchers

James Cloos avatar  avatar  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.