Skip to content

jromero/openfaas-cnb

openfaas-cnb Build

Clound Native Buildpack for OpenFaaS

Getting started

Usage

This buildpack is currently intended to be used with the heroku builder heroku/pack:18 via pack.

Configuration

An optional watchdog.toml configuration file may be present at the application root:

[watchdog]
# The watchdog version to use.
# See https://github.com/openfaas-incubator/of-watchdog/releases
# (default: 0.7.6)
version = "0.7.6"

# The cloud native buildpack process type to run.
# See `pack inspect-image <built-app-image>`
# (default: web)
process_type = "web"

Build your app

pack build my-app \
  --builder heroku/buildpacks:18 \
  --buildpack from=builder \
  --buildpack jar013/openfaas-cnb:latest \
  --path .

Building

make build

Testing (End-to-End)

Run end-to-end test using pack.

make test-e2e

Packaging

Creates a portable .tgz format of this buildpack.

make package-tgz

Creates a distributable buildpack image.

make package-image

Troubleshooting

pack build ... -e BP_DEBUG=true