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: 3 months ago
JSON representation
First cloud run app
- Host: GitHub
- URL: https://github.com/rprakashg/plantuml-image-converter
- Owner: rprakashg
- Created: 2019-04-10T19:25:10.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-12T04:28:06.000Z (over 5 years ago)
- Last Synced: 2024-06-15T06:35:57.727Z (5 months ago)
- Language: Go
- Size: 14.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-cloud-run - plantuml-image-converter
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 ResponseAlice -> 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
``