Invoking OpenFaaS serverless functions from Siri

With the advent of iOS 12, the Workflow app has been replaced with Shortcuts which is the new app for creating custom shortcuts. In iOS 12, they can also be triggered by custom phrases in Siri. I wanted to see what Shortcuts is capable of doing so I challenged myself: Create a shortcut which allows the user to select a function from an OpenFaaS instance and run it with custom input I wasn't too sure where to start, but opted to go with retrieving the list of functions from an instance first. This is fairly easy as OpenFaaS exposes gateway:8080/system/functions for getting a list of functions and their statuses. The next step was to figure out how continue...

Ship Serverless Functions to your Docker Swarm with OpenFaaS

Open Functions as a Service or OpenFaaS (lead by Alex Ellis) is a really neat way of implementing serverless functions with Docker. You can build out functions in any programming language and then deploy them to your existing Docker Swarm. In this post we'll look at an experimental CLI for making that even easier Below is a quick example of how easy this is to do. How it works This diagram gives an overview of how the OpenFaaS function package, the Docker image, and the faas-cli deploy command fit together. To deploy a function onto an OpenFaaS stack, you firstly must write the function itself. This is really easy and you can do it in any language which runs inside continue...