1.0.0 • Published 8 years ago
serverless-openfaas v1.0.0
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
- Node.js 8 or newer
- Serverless Inc CLI (sls)
- Docker 17.05+
- OpenFaaS & CLI (faas-cli)
Installation:
- Serverless Inc CLI (sls)
sudo npm i -g serverless- Get the OpenFaaS CLI:
$ curl -sSL https://cli.openfaas.com | sudo shOr 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.shThis will install the
serverlessnpm 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 remove1.0.0
8 years ago