Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

openfaas docker npm

Example project using NPM, OpenFaaS, and Docker

This project shows how you can configure Garden to use dependencies (NPM package), functions (OpenFaaS), and containers (Docker).

# Build dependency
hello-container -> hello-npm-package
# Runtime dependency
hello-container -> hello-function (openfaas)


Use the deploy command to deploy the project:

garden deploy

Use the call command to get the output of the hello-container endpoint:

$ garden call hello-container/hello

✔ Sending HTTP GET request to

200 OK

  "message": "Hello there, I'm an OpenFaaS function"

or call the function directly:

$ garden call hello-function/function/hello-function

✔ Sending HTTP GET request to

200 OK

an OpenFaaS function