Skip to content

Latest commit

 

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

OpenFaaS Functions in Babashka

This directory contains Function examples that can be run in OpenFaaS using the following instructions.

See OpenFaaS website for more detailed and up to date documentation.

Prerequisites

Environment variables

export DOCKER_REGISTRY_IMG_ORG_PATH=<registry org path>

Check stack.yml to find out how DOCKER_REGISTRY_IMG_ORG_PATH is used.

Building and deploying your function

To build and deploy the Functions to OpenFaaS, run the following command:

faas-cli up

Testing a function

Test a Function using the OpenFaaS UI or with the following command:

echo "world" | faas-cli invoke bb-http-hello

Should ouput "Hello, world" string to the terminal.