Function to convert plantUML sequence diagrams to png file format
Run the build.sh script in terminal
./build.sh
Run the push.sh script in terminal
./push.sh
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
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