Giter Club home page Giter Club logo

kib's Introduction

kib

Build Status PyPI version Coverage Status

Kubernetes image builder is simple service capable to build custom images and push them to registry. It is using Custom resources and image controller.

Image controller is listening for changes in Kubernetes API and build missing images.

Installation

  1. Create custom resources
kubectl apply -f resources/
  1. Run controller
  • in Kubernetes cluster
kubectl apply -f deploy.yml
  • directly
python3 -m kib
  • install from PyPi
pip3 install kib
kib
  • development (including testing Kubernetes and registry)
docker-compose up -d
kubectl apply -f deploy.yml
pip3 install -r requirements.txt
source devenv.sh
python -m kib
  1. Add Image resources and wait for them to get builded. Image examples can be found in examples/

Configuration

Configuration options are defined by environment variables.

Name Default Description
KIB_CONFIG incluster Define how to load configuration
KIB_BUILD_MISSING 1 Build missing images on start
KIB_WATCH 1 Keep watching for new images

Demo

asciicast

kib's People

Contributors

pjediny avatar tomkukral avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

pjediny

kib's Issues

Add support for building from git

Our build process is currently very simple:

  1. download Dockerfile (and only this dockerfile)
  2. run docker build

It would be nice to have a support for cloning whole repository with Dockerfile and build this.

Req: add support for cloning repo and build from this repo.

Broken build

# github.com/tomkukral/kib/crd
../../go/src/github.com/tomkukral/kib/crd/image.go:51: cannot use "k8s.eral (type "k8s.io/apimachinery/pkg/apis/meta/v1".ObjectMeta) as type "machinery/pkg/apis/meta/v1".ObjectMeta in field value
../../go/src/github.com/tomkukral/kib/crd/image.go:74: cannot use Imageery/pkg/runtime".Object in argument to scheme.AddKnownTypes:
	*Image does not implement "k8s.io/apimachinery/pkg/runtime".Obj
../../go/src/github.com/tomkukral/kib/crd/image.go:75: cannot use Imagepimachinery/pkg/runtime".Object in argument to scheme.AddKnownTypes:
	*ImageList does not implement "k8s.io/apimachinery/pkg/runtime"

create Image class

We currently construct image dictionary every time information about image is used.

We should create Image objects and be able to:

  • load it from Kubernetes API
  • validate information in Image
  • build image*
  • push image*
  • Build and push image will be just wrapper for current functions.

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.