Ron Rivera 33800a20d8 Update watchdog to 0.9.14 for sample functions
We need to update the watchdog version for sample functions to 0.9.14
including all references in markdown files.

Signed-off-by: Ron Rivera <roncrivera@gmail.com>
2019-01-13 08:40:07 +00:00
..
2017-08-31 16:18:55 +01:00
2017-08-31 16:18:55 +01:00
2017-12-22 09:14:56 +00:00

BaseFunction for R

Use this FaaS function using R.

Deploy the base R function

(Make sure you have already deployed FaaS with ./deploy_stack.sh in the root of this Github repository.

  • Option 1 - click Create a new function on the FaaS UI

  • Option 2 - use the faas-cli (experimental)

# curl -sSL https://get.openfaas.com | sudo sh

# faas-cli -action=deploy -image=functions/base:R-3.4.1-alpine -name=baser
200 OK
URL: http://localhost:8080/function/baser

Say Hi with input

curl is good to test function.

$ curl http://localhost:8080/function/baser -d "test"

Customize the transformation

If you want to customise the transformation then edit the Dockerfile or the fprocess variable and create a new function.

Remove the function

You can remove the function with docker service rm baser.