Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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

Last synced: 3 months ago
JSON representation

First cloud run app

Awesome Lists containing this project

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