Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/rprakashg/plantuml-image-converter

First cloud run app
https://github.com/rprakashg/plantuml-image-converter

Last synced: 18 days ago
JSON representation

First cloud run app

Lists

README

        

#plantuml-image-conversion
Converts any plant UML diagram to PNG image. For more info [see](http://www.plantuml.com)

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
``