2020年5月20日水曜日

Container Registryへ登録手順

gcloudコマンドのインストール方法は割愛。


Container Registryへpushする方法:
1)作成したdockerfileのpushを以下のコマンドで実施。
gcloud builds submit --tag gcr.io/プロジェクトID/helloworld

例:
/Users/user/Downloads/google-cloud-sdk/bin/gcloud builds submit --tag gcr.io/test-xxxxxxx/helloworld

参照先:



デプロイする方法:
(cloud runからイメージ指定して利用する場合は、以下の手順は、不要)

gcloud beta run deploy --image gcr.io/プロジェクトID/helloworld

0 件のコメント:

コメントを投稿

terraform(moved.tf)のリソース名の修正方法について

以下の赤枠を直接変えてしまうと、ec2が削除されてしまいます。 これを維持したい場合について記載します。 以下に moved.tf ファイルを作成します。 以下のように、 from に修正前で、 to に修正したい内容を記載します。 以下のリソースにも修正を加えます。 terra...