Skip to content

Commit

Permalink
Use long-flags everywhere, for readability.
Browse files Browse the repository at this point in the history
Prevents common mistake between -p and -P.
  • Loading branch information
kryzthov committed Dec 22, 2017
1 parent 4b646f9 commit b9db963
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 19 deletions.
16 changes: 9 additions & 7 deletions endpoints/getting-started-grpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,22 @@ and [SDK](https://cloud.google.com/sdk/) configured.
```bash
/usr/share/google/dockercfg_update.sh
docker run -d --name=grpc-hello gcr.io/${GCLOUD_PROJECT}/java-grpc-hello:1.0
docker run --detach --name=grpc-hello gcr.io/${GCLOUD_PROJECT}/java-grpc-hello:1.0
```
1. Run the Endpoints proxy
```bash
docker run --detach --name=esp \
-p 80:9000 \
docker run \
--detach \
--name=esp \
--publish 80:9000 \
--link=grpc-hello:grpc-hello \
gcr.io/endpoints-release/endpoints-runtime:1 \
-s ${SERVICE_NAME} \
-v ${SERVICE_CONFIG_ID} \
-P 9000 \
-a grpc://grpc-hello:50051
--service=${SERVICE_NAME} \
--version=${SERVICE_CONFIG_ID} \
--http2_port=9000 \
--backend=grpc://grpc-hello:50051
```
1. Back on your local machine, get the external IP of your GCE instance.
Expand Down
8 changes: 4 additions & 4 deletions endpoints/getting-started-grpc/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ spec:
- name: esp
image: gcr.io/endpoints-release/endpoints-runtime:1
args: [
"-P", "9000",
"-a", "grpc://127.0.0.1:50051",
"-s", "SERVICE_NAME",
"-v", "SERVICE_CONFIG_ID",
"--http2_port=9000",
"--backend=grpc://127.0.0.1:50051",
"--service=SERVICE_NAME",
"--version=SERVICE_CONFIG_ID",
]
ports:
- containerPort: 9000
Expand Down
8 changes: 4 additions & 4 deletions endpoints/getting-started/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ spec:
- name: esp
image: gcr.io/endpoints-release/endpoints-runtime:1
args: [
"--http_port", "8081",
"--backend", "127.0.0.1:8080",
"--service", "SERVICE_NAME",
"--version", "SERVICE_CONFIG_ID",
"--http_port=8081",
"--backend=127.0.0.1:8080",
"--service=SERVICE_NAME",
"--version=SERVICE_CONFIG_ID",
]
# [END esp]
ports:
Expand Down
8 changes: 4 additions & 4 deletions endpoints/multiple-versions/container-engine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ spec:
- name: esp
image: gcr.io/endpoints-release/endpoints-runtime:1
args: [
"-p", "8081",
"-a", "127.0.0.1:8080",
"-s", "SERVICE_NAME",
"-v", "SERVICE_CONFIG_ID",
"--http_port=8081",
"--backend=127.0.0.1:8080",
"--service=SERVICE_NAME",
"--version=SERVICE_CONFIG_ID",
]
# [END esp]
ports:
Expand Down

0 comments on commit b9db963

Please sign in to comment.