Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 1.38 KB

README.md

File metadata and controls

46 lines (36 loc) · 1.38 KB

faas-figlet

OpenFaaS Figlet image.

This repository comes with the blog post http://jmkhael.io/create-a-serverless-ascii-banner-with-faas/

You can either try it in PWD, or locally.

Try in PWD

then:

curl http://localhost:8080/function/func_figlet -d 'Hello, FaaS, world'
 _   _      _ _          _____           ____                        _     _
| | | | ___| | | ___    |  ___|_ _  __ _/ ___|   __      _____  _ __| | __| |
| |_| |/ _ \ | |/ _ \   | |_ / _` |/ _` \___ \   \ \ /\ / / _ \| '__| |/ _` |
|  _  |  __/ | | (_) |  |  _| (_| | (_| |___) |   \ V  V / (_) | |  | | (_| |
|_| |_|\___|_|_|\___( ) |_|  \__,_|\__,_|____( )   \_/\_/ \___/|_|  |_|\__,_|

Alternatively, you can deploy OpenFaaS gateway and the figlet function locally:

git clone https://github.com/jmkhael/faas-figlet
docker stack deploy -c docker-compose.yml figlet

Or deploy the full OpenFaaS (with prometheus and others)

git clone https://github.com/alexellis/faas && \
  cd faas && \
  ./deploy_stack.sh && \
  docker service ls

Then clone this repo, build, deploy and test:

git clone https://github.com/jmkhael/faas-figlet
cd faas-figlet
./build.sh
./deploy.sh
./test.sh