Skip to content

A FaaS function to generate ascii art from an image url

License

Notifications You must be signed in to change notification settings

developius/faas-node-ascii

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

faas-node-ascii

A FaaS function to generate ascii art from an image url!

You can execute the function like this:

curl http://localhost:8080/function/func_ascii -d "https://www.docker.com/sites/default/files/social/docker-facebook-share.png"

(or use the FaaS UI to send the URL)

Installation

You can either install faas-node-ascii via your FaaS compose file or you can add it via the UI.

Compose file

Add this to docker-compose.yml and then redeploy the stack

ascii:
    image: developius/faas-node-ascii:latest
    labels:
        function: "true"
    depends_on:
        - gateway
    networks:
        - functions
    environment:
        no_proxy: "gateway"
        https_proxy: $https_proxy

docker stack deploy -c docker-compose.yml func

UI

Hit the CREATE NEW FUNCTION button and add these details:

  • Image: developius/faas-node-ascii:latest
  • Service name: ascii
  • fProcess: node /app/index.js
  • Network: func_functions

Hit create!

About

A FaaS function to generate ascii art from an image url

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published