Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
libraries/hello-npm-package
services
README.md
garden.yml

README.md

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)

Usage

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 http://hello-world.local.app.garden/hello

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 http://hello-world.local.app.garden/function/hello-function

200 OK

an OpenFaaS function