Skip to content

Commit ac9295b

Browse files
ahmetbamygdala
authored andcommitted
tidy up deploy command (#38)
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
1 parent 13e12b7 commit ac9295b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cloud_run/twilio_vision/README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ Install docker, then run the following `gcloud` commands to add the gcloud Docke
3636

3737
```sh
3838
gcloud auth configure-docker
39-
gcloud components install docker-credential-gcr
4039
```
4140

4241
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
6059
`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.
6160

6261
```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..."
6567
```
6668

6769
Make note of the endpoint the app is running on. You'll need it for the next step.

0 commit comments

Comments
 (0)