Giter VIP home page Giter VIP logo

bb-hashserver's Introduction

Bitbake Hash Equivalence Server

This is an alternate implementation of the Hash Equivalence server that can be used by bitbake. While the reference implementation included in bitbake is sufficient for many use cases, it focuses on correctness and minimal dependencies. As such, there are some features that are not appropriate for it to implement. This implementation is designed as an alternative server that can have more features since it drops some of the restrictions of the bitbake internal implementation.

Specifically, this implementation:

  1. Uses websockets as the transport layer for compatibility with modern web-based services
  2. Utilizes SQL Alchemy for the database implementation so it can work with almost any SQL database backend
  3. Is designed to be stateless so that multiple instances can be run for load-balancing/redundancy
  4. Provides Docker images for easy integration into K8s et. al. (TODO: images still need to be built & published)
  5. Authentication (See below)
  6. Role Based Access Control (TODO: Not implemented yet)

Websockets are chosen as transport mechanism because it makes it easy to run the server on typical web service infrastructure (e.g. K8s), which provides a number of "free" features, such as SSL support and authentication support via the cluster ingress

Quickstart Guide

This repository provides a docker-compose.yaml file to make it easy to quickly spin up an instance of the server with a postgesql database backend. To start the server, simply the following command in this directory:

docker-compose up

Then, configure bitbake to use the this running server by adding the following to your local.conf file:

BB_HASHSERVE = "ws://localhost:9000"

bb-hashserver's People

Contributors

joshuawatt avatar

Stargazers

Mack Hooper avatar Ernast Sevo avatar Maksim Chichikalov 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.