This is a Quickstart guide for FaaS functions as a Service on Play-with-docker.com
Head over to http://play-with-docker.com/ and start a new session. Add one host to start with.
# docker swarm init # use --advertise-addr here and pick the 10.x IP address range
# git clone https://github.com/alexellis/faas
# cd faas
# ./deploy_stack.sh
Now that everything's deployed take note of the two DNS entries at the top of the screen.
Head over to the README to see how to invoke the sample function for Docker Hub Stats via the curl
commands.
The sample functions are:
-
Webhook stasher function - saves webhook body into container's filesystem
-
Docker Hub Stats function - queries the count of images for a user on the Docker Hub
Then checkout the gateway_functions_count
metrics on your Prometheus endpoint (Port 9090).