Difficulty: Beginner
Estimated Time: 10 minutes

Serverless Functions Made Simple for Docker and Kubernetes

With OpenFaaS, you can package anything as a serverless function - from Java, Node.js to Golang to CSharp, even binaries like ffmpeg or ImageMagick.

You can try OpenFaaS in 60 seconds or write and deploy your first Python function in around 10-15 minutes.

Learn how the FaaS-CLI makes serverless functions simple - https://blog.alexellis.io/quickstart-openfaas-cli/

You learned how to -

  • Deploy the OpenFaaS application
  • Install and use CLI
  • Check services at Docker level
  • Install Java functions

Don’t stop now! The next scenario will only take about 10 minutes to complete.

OpenFaaS

Step 1 of 5

Download and start OpenFaaS solution

Initialize Swarm - docker swarm init

Use " --advertise-addr eth0" at the end of above command in Mac

Download OpenFaaS code from GITHUB - git clone https://github.com/openfaas/faas

Get into the code directory - cd faas

Set the branch to master - git checkout master

Start the OpenFaaS application - ./deploy_stack.sh

Verify if the service is up - docker service ls