Skip to content

rprakashg/plantuml-image-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#plantuml-image-conversion Converts any plant UML diagram to PNG image. For more info see

export PROJECT_ID = "set it to your GCP project"

Building

Run command below in shell

gcloud builds submit . --config=build.yaml

Running

Run command below to deploy and run it in Cloud Run

gcloud beta run deploy --image gcr.io/$PROJECT_ID/plantuml-image-converter --allow-unauthenticated

Tesitng

Save the sample UML diagram below on to a file named demo.uml

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

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

CURL

curl -X POST \
  https://plantuml-image-conversion-lmvtezbola-uc.a.run.app \
  -H 'Accept: image/png' \
  -H 'content-type: multipart/form-data;' \
  -F uploadFile=@/Users/rgopina/cloudrun/demo.uml
``

About

First cloud run app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published