FaaS serverless framework bootstrap for Raspberry Pi
This bootstraps FaaS onto your Raspberry Pi or ARM board with Docker.
Any Linux/UNIX process can be made a serverless function. Communication with functions is via an API gateway with an easy to use UI portal.
Here's the one-shot equivalent from the TestDrive guide
docker swarm init && \ git clone https://github.com/alexellis/faas && \ cd faas && \ ./deploy_stack.armhf.sh && \ docker service ls
You will then find a reduced set of built-in sample functions available such as
While the Docker images download you can view the status like this:
watch docker stack ls func
Here's an example of how to create a new function to read the CPU temperature:
Full integration with Github - to count stars
See the following repository for a full integration with Github events: