Skip to content

Commit a2e4e81

Browse files
dinagravesleahecole
andcommitted
Adding environment port variable (#2748)
Co-authored-by: Leah E. Cole <[email protected]>
1 parent 003c1f4 commit a2e4e81

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

run/hello-broken/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ docker build --tag hello-broken:python .
1818
## Run Locally
1919

2020
```
21-
docker run --rm -p 9090:8080 hello-broken:python
21+
docker run --rm -p 9090:8080 -e PORT=8080 hello-broken:python
2222
```
2323

2424
## Test
@@ -44,4 +44,4 @@ gcloud run deploy hello-broken \
4444
```
4545

4646

47-
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/master/run)
47+
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/master/run)

run/image-processing/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ docker build --tag pubsub-tutorial:python .
1818
## Run Locally
1919

2020
```
21-
docker run --rm -p 9090:8080 pubsub-tutorial:python
21+
docker run --rm -p 9090:8080 -e PORT=8080 pubsub-tutorial:python
2222
```
2323

2424
## Test

run/logging-manual/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ docker build --tag logging-manual:python .
1616
## Run Locally
1717

1818
```
19-
docker run --rm -p 9090:8080 logging-manual:python
19+
docker run --rm -p 9090:8080 -e PORT=8080 logging-manual:python
2020
```
2121

2222
## Test
@@ -44,4 +44,4 @@ gcloud beta run deploy logging-manual \
4444

4545
Read more about Cloud Run logging in the [Logging How-to Guide](http://cloud.google.com/run/docs/logging).
4646

47-
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/master/run)
47+
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/master/run)

run/pubsub/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ docker build --tag pubsub-tutorial:python .
1818
## Run Locally
1919

2020
```
21-
docker run --rm -p 9090:8080 pubsub-tutorial:python
21+
docker run --rm -p 9090:8080 -e PORT=8080 pubsub-tutorial:python
2222
```
2323

2424
## Test

run/system-package/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ docker build --tag graphviz:python .
1919
## Run Locally
2020

2121
```
22-
docker run --rm -p 9090:8080 graphviz:python
22+
docker run --rm -p 9090:8080 -e PORT=8080 graphviz:python
2323
```
2424

2525
## Test

0 commit comments

Comments
 (0)