= riff Builder
This repository hosts the files necessary to create the buildpack builder used when
riff builds functions from source with the riff function create <fn-name>
command.
== Relation to the https://github.com/projectriff?utf8=✓&q=function-buildpack[projectriff/*-function-buildpack] Repositories In the v3 buildpack ecosystem, a distinction needs to be made between a buildpack and a builder.
The latter is what is actually involved when running riff function create
with the
buildpack approach. A builder is the composition of several buildpacks using groups.
It takes the form of a docker image. In the case of riff, its official location is
https://hub.docker.com/r/projectriff/builder/[projectriff/builder].
The purpose of this repository is to allow the creation of that builder.
The former, a buildpack, is a more fine grained unit of logic that can be composed and
collaborate with other buildpacks. The https://github.com/projectriff/java-function-buildpack[projectriff/java-function-buildpack]
repository hosts one of them, responsible for applying the riff-specific logic on top of
the more general java building logic. As more languages become supported by riff,
other riff function buildpacks will be added to collaborate with other buildpacks (e.g. python
), while this
repository's builder.toml
file will enhance its group(s) to reference e.g. the generic
python
buildpack.
== Building
=== Prerequisites
To build the projectriff/builder
builder you'll need
pack build
reference:
[source, bash]