serverless-openfaas

1.0.0 • Public • Published

This is an OpenFaaS plugin for the Serverless Inc framework.

Were you looking for OpenFaaS?

You are probably looking for OpenFaaS - openfaas/faas.

serverless-openfaas

Pre-reqs

Installation:

  • Serverless Inc CLI (sls)
sudo npm i -g serverless
  • Get the OpenFaaS CLI:
$ curl -sSL https://cli.openfaas.com | sudo sh

Or install via brew install faas-cli.

  • Get OpenFaaS

You can deploy OpenFaaS locally or remotely with Docker Swarm or Kubernetes. See the documentation

Getting started

  • Get this plugin
$ git clone https://github.com/openfaas/serverless-openfaas
$ ./prep.sh

This will install the serverless npm module.

  • Test all commands with a script
$ ./test-plugin.sh
  • Manually test commands

Run ./test-plugin.sh then:

$ cd driver/faas-func
$ sls <command>

Currently supported commands

sls init
sls package
sls deploy
sls deploy function -f <your-function>
sls deploy list
sls invoke -f <your-function> -d <your-data> # -d flag optional
sls remove

Readme

Keywords

none

Package Sidebar

Install

npm i serverless-openfaas

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

17.7 kB

Total Files

20

Last publish

Collaborators

  • openfaasltd