internal/gaby: increase Cloud Run RAM
From the default 512M to 2G.
Change-Id: I61e5a37095aea264b4cc00ee72905a4b8b4890ab
Reviewed-on: https://go-review.googlesource.com/c/oscar/+/617195
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Zvonimir Pavlinovic <zpavlinovic@google.com>
diff --git a/internal/gaby/cloudbuild.yaml b/internal/gaby/cloudbuild.yaml
index a98a175..ffbdba3 100644
--- a/internal/gaby/cloudbuild.yaml
+++ b/internal/gaby/cloudbuild.yaml
@@ -78,7 +78,8 @@
service=gaby-$env
echo "deploying service $service from image $image"
- gcloud run deploy --project $PROJECT_ID $service --image $image --region us-central1
+ gcloud run deploy --project $PROJECT_ID $service --image $image --region us-central1 \
+ --memory 2G
# If there was a rollback, `gcloud run deploy` will create a revision
# but not point traffic to it. The following command ensures that the
diff --git a/internal/gaby/deploy-cloud-run.sh b/internal/gaby/deploy-cloud-run.sh
index fd5c3f2..7ef9cef 100755
--- a/internal/gaby/deploy-cloud-run.sh
+++ b/internal/gaby/deploy-cloud-run.sh
@@ -40,6 +40,6 @@
docker push $image
-gcloud run deploy gaby-devel --image $image --region $region --quiet
+gcloud run deploy gaby-devel --image $image --region $region --memory 2G --quiet
gcloud run services update-traffic gaby-devel --to-latest --region $region