Open2
Cloud Runへのデプロイ方法
Container Registry へimage push
google-cloud-sdkインストール
curl https://sdk.cloud.google.com | bash
パスを追加して良いか聞かれるので、Yと回答
Modify profile to update your $PATH and enable shell command
completion?
Do you want to continue (Y/n)? Y
シェルを再起動する
exec -l $SHELL
gcloud init を実行して gcloud 環境を初期化する
gcloud init
ブラウザでgoogleアカウントにログインする
You must log in to continue. Would you like to log in (Y/n)? Y
SDKで使用するプロジェクトを選択する
Pick cloud project to use:
[1] ...
[2] ...
[3] ...
Please enter numeric choice or text value (must exactly match list
item): 1
DockerfileのカレントディレクトリでDocker imageをContainer Registryへプッシュ
gcloud builds submit --tag gcr.io/[GCPのプロジェクト ID]/[イメージ名]
初回、APIが有効になっていない場合はyを回答して有効化する
API [cloudbuild.googleapis.com] not enabled on project [].
Would you like to enable and retry (this will take a few minutes)?
(y/N)? y