Skip to content

horike37/serverless-openfaas-1

 
 

Repository files navigation

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

  • NodeJS 6+

  • Docker 17.05+

  • faas-cli

  • Get the OpenFaaS CLI:

$ curl -sSL https://cli.openfaas.com | sudo sh

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

About

An OpenFaaS plugin for the Serverless Inc framework (work in progress)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 92.7%
  • Shell 7.3%