Skip to content

Function to convert PlantUML file to PNG, leverages Openfaas (http://www.openfaas.com) platform for building serverless functions

Notifications You must be signed in to change notification settings

faas-and-furious/faas-plantuml-to-png

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

faas-plantuml-to-png

Function to convert plantUML sequence diagrams to png file format

Building the docker image

Run the build.sh script in terminal

./build.sh

Push the image to registry

Run the push.sh script in terminal

./push.sh

deploy the function

Deploy the function using faas-cli by running the command below

faas-cli deploy -f https://raw.githubusercontent.com/tmobile/faas-plantuml-to-png/master/faas-plantutml-to-png.yml  --gateway http://docker.local:8080

Testing the function

Use the sample plantUML below and create a sample.uml file. You can also use the sample.uml file that is in this repo.

@startuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response

Alice -> Bob: Another authentication Request
Alice <-- Bob: another authentication Response
@enduml

Run the command below

cat sample.uml | faas-cli invoke plantuml-to-png > out.png

About

Function to convert PlantUML file to PNG, leverages Openfaas (http://www.openfaas.com) platform for building serverless functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages