riff

module
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2019 License: Apache-2.0

README

= riff is for functions image:https://travis-ci.com/projectriff/riff.svg?branch=master["Build Status", link="https://travis-ci.com/projectriff/riff"]

image::logo.png[riff logo, link=https://projectriff.io/]
= A FaaS for Kubernetes

The riff CLI helps developers build and run functions using link:https://github.com/knative/docs[Knative].
It includes commands to install Knative in a Kubernetes cluster, and for managing functions, services, channels, and subscriptions.

== Installation of the latest release

=== Binaries

Official binary releases are available from the link:https://github.com/projectriff/riff/releases[Releases] page. See link:https://projectriff.io/docs/getting-started-with-knative-riff-on-minikube/[Getting started on Minikube] or
link:https://projectriff.io/docs/getting-started-with-knative-riff-on-gke/[Getting started on GKE] for how to install the riff CLI and the riff system.

=== Homebrew

To install the CLI for Mac OS with link:https://brew.sh/[Homebrew]:

[source, bash]
----
brew install riff
----

=== Chocolatey

To install the CLI for Windows with link:https://chocolatey.org/[Chocolatey]:

[source, bash]
----
choco install riff
----

== Developer installation of Knative

The code for Knative serving and eventing and build lives in repos under the link:https://github.com/knative[knative] GitHub organization. Developers can use the riff CLI against their own Knative builds, by installing a link:https://github.com/knative/eventing/blob/master/DEVELOPMENT.md[Knative development environment].

== [[manual]] Manual build of the riff CLI

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

=== Prerequisites

You need:

* A working Go 1.11.4 (or later) environment

=== Get the main riff repo

[source, bash]
----
go get -d github.com/projectriff/riff/...
----

=== Build the riff CLI

[source, bash]
----
cd $(go env GOPATH)/src/github.com/projectriff/riff
make build
----

=== Build and install the riff CLI

[source, bash]
----
cd $(go env GOPATH)/src/github.com/projectriff/riff
make build install
----
NOTE: This installs the CLI in `$GOBIN`, or if that is not set, in the `bin` subdirectory of the directory specified in `$GOPATH`.

== Contributing to riff

Please refer to the link:CONTRIBUTING.adoc[Contributors' Guide].

== Maintaining riff

Please refer to the link:MAINTAINING.adoc[Maintainers' Guide].

Directories

Path Synopsis
cmd
pkg
core
package core contains a high level client for interacting with knative primitives used to realise, amongst other things, riff functions.
package core contains a high level client for interacting with knative primitives used to realise, amongst other things, riff functions.
env
riff/commands
package commands contains Cobra commands that implement the CLI behavior.
package commands contains Cobra commands that implement the CLI behavior.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL