| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This sample presents broken code in need of troubleshooting. View improved for a more stable implementation.
Troubleshoot this code by following the Local Container Troubleshooting Tutorial.
docker build --tag hello-broken:python .
docker run --rm -p 9090:8080 -e PORT=8080 hello-broken:python
nox -s "py36(sample='./run/hello-broken')"
Note: you may need to install nox using pip install nox.
# 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}/hello-broken
# Deploy to Cloud Run
gcloud run deploy hello-broken \
--image gcr.io/${GOOGLE_CLOUD_PROJECT}/hello-broken For more details on how to work with this sample read the Python Cloud Run Samples README
| Back | FazBrowse Home | New Git URL |