You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
awesome demo! 🚀
- tidied up deploy command
- used --set-env-vars
- no need to install docker-credential-gcr, as it should be auto-installed with gcloud installations by default for the releases in the past few months
Copy file name to clipboardExpand all lines: cloud_run/twilio_vision/README.md
+5-3
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,6 @@ Install docker, then run the following `gcloud` commands to add the gcloud Docke
36
36
37
37
```sh
38
38
gcloud auth configure-docker
39
-
gcloud components install docker-credential-gcr
40
39
```
41
40
42
41
Then, run the following from this directory (the one that contains the `Dockerfile`) to build and push your container. Replace the following with your GCP project ID.
@@ -60,8 +59,11 @@ Once you've built the container image, deploy the app as follows (edit to use yo
60
59
`MESSAGE_BLURB` string with whatever you prefer — this string will be returned as part of the app response, along with information from the Cloud Vision API.
61
60
62
61
```sh
63
-
gcloud config set run/region us-central1
64
-
gcloud beta run deploy --image gcr.io/<your_project>/twilio-vision:v1 --update-env-vars MESSAGE_BLURB="Courtesy of the Google Cloud Vision API..."
62
+
gcloud beta run deploy \
63
+
--image gcr.io/<your_project>/twilio-vision:v1 \
64
+
--region us-central1 \
65
+
--allow-unauthenticated \
66
+
--set-env-vars MESSAGE_BLURB="Courtesy of the Google Cloud Vision API..."
65
67
```
66
68
67
69
Make note of the endpoint the app is running on. You'll need it for the next step.
0 commit comments