Cloud Run で PlantUML Server を利用する

自前の PlantUML Server が欲しくなったら Cloud Run がお手軽です!(2019/04/16 時点)

SDK をインストール

cloud.google.com

認証

cloud.google.com

image build

github.com

をクローンして

docker image build -t gcr.io/<プロジェクトID>/plantuml-server .

image push

docker push gcr.io/<プロジェクトID>/plantuml-server

サービス作成

CREATE SERVICE ボタンをクリックして push した image を選ぶだけ。

オプションでメモリを 512 以上に設定する。

以上!!

これだけで、XXXX.run.app に PlantUML Server が立ち上がります!

手軽すぎて怖いですね。。。

参考

medium.com

qiita.com

cloud.google.com