Skip to content

Commit cfd9859

Browse files
chore: update READMEs
1 parent b16060f commit cfd9859

File tree

2 files changed

+4
-62
lines changed

2 files changed

+4
-62
lines changed

run/helloworld-fastapi/README.md

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,43 +7,14 @@ This sample shows how to deploy a Hello World FastAPI application to Cloud Run.
77
[run_img]: https://storage.googleapis.com/cloudrun/button.svg
88
[run_link]: https://console.cloud.google.com/cloudshell/editor?shellonly=true&cloudshell_image=gcr.io/cloudrun/button&cloudshell_git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&cloudshell_working_dir=run/helloworld-fastapi
99

10-
## Build
11-
12-
* Set an environment variable with your GCP Project ID:
13-
14-
```sh
15-
export GOOGLE_CLOUD_PROJECT=<PROJECT_ID>
16-
```
17-
18-
* Use a [Buildpack](https://github.com/GoogleCloudPlatform/buildpacks) to build the container:
19-
20-
```sh
21-
gcloud builds submit --pack image=gcr.io/${GOOGLE_CLOUD_PROJECT}/helloworld-fastapi
22-
```
23-
24-
## Run Locally
25-
26-
```sh
27-
docker run --rm gcr.io/${GOOGLE_CLOUD_PROJECT}/helloworld-fastapi
28-
```
29-
30-
## Test
31-
32-
```sh
33-
pytest
34-
```
35-
36-
_Note: you may need to install `pytest` using `pip install pytest`._
37-
3810
## Deploy
3911

4012
```sh
41-
# Set an environment variable with your GCP Project ID
42-
export GOOGLE_CLOUD_PROJECT=<PROJECT_ID>
13+
# Ensure you have set your Google Cloud Project ID
14+
gcloud config set project <PROJECT_ID>
4315

4416
# Deploy to Cloud Run
4517
gcloud run deploy helloworld-fastapi --source .
4618
```
4719

48-
4920
For more details on how to work with this sample read the [Python Cloud Run Samples README](https://github.com/GoogleCloudPlatform/python-docs-samples/tree/main/run)

run/helloworld-streamlit/README.md

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,43 +7,14 @@ This sample shows how to deploy a Hello World Streamlit application to Cloud Run
77
[run_img]: https://storage.googleapis.com/cloudrun/button.svg
88
[run_link]: https://console.cloud.google.com/cloudshell/editor?shellonly=true&cloudshell_image=gcr.io/cloudrun/button&cloudshell_git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&cloudshell_working_dir=run/helloworld-streamlit
99

10-
## Build
11-
12-
* Set an environment variable with your GCP Project ID:
13-
14-
```sh
15-
export GOOGLE_CLOUD_PROJECT=<PROJECT_ID>
16-
```
17-
18-
* Use a [Buildpack](https://github.com/GoogleCloudPlatform/buildpacks) to build the container:
19-
20-
```sh
21-
gcloud builds submit --pack image=gcr.io/${GOOGLE_CLOUD_PROJECT}/helloworld-streamlit
22-
```
23-
24-
## Run Locally
25-
26-
```sh
27-
docker run --rm gcr.io/${GOOGLE_CLOUD_PROJECT}/helloworld-streamlit
28-
```
29-
30-
## Test
31-
32-
```sh
33-
pytest
34-
```
35-
36-
_Note: you may need to install `pytest` using `pip install pytest`._
37-
3810
## Deploy
3911

4012
```sh
41-
# Set an environment variable with your GCP Project ID
42-
export GOOGLE_CLOUD_PROJECT=<PROJECT_ID>
13+
# Ensure you have set your Google Cloud Project ID
14+
gcloud config set project <PROJECT_ID>
4315

4416
# Deploy to Cloud Run
4517
gcloud run deploy helloworld-streamlit --source .
4618
```
4719

48-
4920
For more details on how to work with this sample read the [Python Cloud Run Samples README](https://github.com/GoogleCloudPlatform/python-docs-samples/tree/main/run)

0 commit comments

Comments
 (0)