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
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
-
38
10
## Deploy
39
11
40
12
```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>
43
15
44
16
# Deploy to Cloud Run
45
17
gcloud run deploy helloworld-fastapi --source .
46
18
```
47
19
48
-
49
20
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)
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
-
38
10
## Deploy
39
11
40
12
```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>
43
15
44
16
# Deploy to Cloud Run
45
17
gcloud run deploy helloworld-streamlit --source .
46
18
```
47
19
48
-
49
20
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