Skip to content

Latest commit

 

History

History
51 lines (31 loc) · 960 Bytes

README.md

File metadata and controls

51 lines (31 loc) · 960 Bytes

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