Giter Club home page Giter Club logo

riff's Introduction

riff is for functions Build Status

riff logo

A FaaS for Kubernetes

Installation of the latest release

See Getting Started for how to install riff with a Helm Chart, and how to install the riff CLI.

Developer installation

See Installing the riff development version using Helm to install the latest unreleased builds (git master branch) of riff.

Manual build

This is the best option if you want to modify the riff components.

Prerequisites

You need:

  • A working Go environment

  • A local 1.7+ Kubernetes cluster

  • A docker daemon

To build images with docker in minikube use

eval $(minikube docker-env)

Get the main riff repo and install the CLI

go get github.com/projectriff/riff

Build the riff core components

cd $(go env GOPATH)/src/github.com/projectriff/riff
make dockerize

Setup for development

If you want to quickly standup a development copy of riff:

make dev-setup

Which will:

  • Create a riff-system namespace

  • Deploy a non-replicated Kafka broker

  • Install riff CRDs and system components

Deploying with RBAC

If your cluster has RBAC enabled, then you also need to create a Role and a RoleBinding:

kubectl apply -n riff-system -f config/rbac

To tear it all down

Once you’re done playing with riff (see samples below), you can destroy everything created above by running:

make teardown

Try Some Samples

Sample functions have moved into their respective invoker repositories.

Running the tests

To run all riff’s unit and integration tests, ensure Kafka (with auto.create.topics.enable=true, which is the default) and Zookeeper are running locally, then issue:

KAFKA_BROKERS=localhost:9092 KAFKA_BROKER=localhost:9092 make test

Contributing to riff

Please refer to the Contributors' Guide.

Maintaining riff

Please refer to the Maintainers' Guide.

riff's People

Contributors

ericbottard avatar glyn avatar jchesterpivotal avatar jldec avatar making avatar markfisher avatar mcowger avatar scothis avatar trisberg avatar

Watchers

 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.