| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This sample service applies Cloud Storage-triggered image processing with Cloud Vision API analysis and ImageMagick transformation.
Use it with the Image Processing with Cloud Run tutorial.
docker build --tag pubsub-tutorial:python .
docker run --rm -p 9090:8080 -e PORT=8080 pubsub-tutorial:python
pytest
Note: you may need to install pytest using pip install pytest.
# Set an environment variable with your GCP Project ID
export GOOGLE_CLOUD_PROJECT=<PROJECT_ID>
# Submit a build using Google Cloud Build
gcloud builds submit --tag gcr.io/${GOOGLE_CLOUD_PROJECT}/pubsub-tutorial
# Deploy to Cloud Run
gcloud run deploy pubsub-tutorial --image gcr.io/${GOOGLE_CLOUD_PROJECT}/pubsub-tutorial --set-env-vars=BLURRED_BUCKET_NAME=<BLURRED_BUCKET_NAME>
Cloud Run services can be configured with Environment Variables. Required variables for this sample include:
| Back | FazBrowse Home | New Git URL |