File tree Expand file tree Collapse file tree 4 files changed +21
-19
lines changed Expand file tree Collapse file tree 4 files changed +21
-19
lines changed Original file line number Diff line number Diff line change @@ -78,20 +78,22 @@ and [SDK](https://cloud.google.com/sdk/) configured.
78
78
79
79
```bash
80
80
/usr/share/google/dockercfg_update.sh
81
- docker run -d --name=grpc-hello gcr.io/${GCLOUD_PROJECT}/java-grpc-hello:1.0
81
+ docker run --detach --name=grpc-hello gcr.io/${GCLOUD_PROJECT}/java-grpc-hello:1.0
82
82
```
83
83
84
84
1. Run the Endpoints proxy
85
85
86
86
```bash
87
- docker run --detach --name=esp \
88
- -p 80:9000 \
87
+ docker run \
88
+ --detach \
89
+ --name=esp \
90
+ --publish 80:9000 \
89
91
--link=grpc-hello:grpc-hello \
90
92
gcr.io/endpoints-release/endpoints-runtime:1 \
91
- -s ${SERVICE_NAME} \
92
- -v ${SERVICE_CONFIG_ID} \
93
- -P 9000 \
94
- -a grpc://grpc-hello:50051
93
+ --service= ${SERVICE_NAME} \
94
+ --version= ${SERVICE_CONFIG_ID} \
95
+ --http2_port= 9000 \
96
+ --backend= grpc://grpc-hello:50051
95
97
```
96
98
97
99
1. Back on your local machine, get the external IP of your GCE instance.
Original file line number Diff line number Diff line change @@ -41,10 +41,10 @@ spec:
41
41
- name : esp
42
42
image : gcr.io/endpoints-release/endpoints-runtime:1
43
43
args : [
44
- " -P " , " 9000",
45
- " -a " , " grpc://127.0.0.1:50051",
46
- " -s " , " SERVICE_NAME",
47
- " -v " , " SERVICE_CONFIG_ID",
44
+ " --http2_port= 9000" ,
45
+ " --backend= grpc://127.0.0.1:50051" ,
46
+ " --service= SERVICE_NAME" ,
47
+ " --version= SERVICE_CONFIG_ID" ,
48
48
]
49
49
ports :
50
50
- containerPort : 9000
Original file line number Diff line number Diff line change @@ -42,10 +42,10 @@ spec:
42
42
- name : esp
43
43
image : gcr.io/endpoints-release/endpoints-runtime:1
44
44
args : [
45
- " --http_port" , " 8081",
46
- " --backend" , " 127.0.0.1:8080",
47
- " --service" , " SERVICE_NAME",
48
- " --version" , " SERVICE_CONFIG_ID",
45
+ " --http_port= 8081" ,
46
+ " --backend= 127.0.0.1:8080" ,
47
+ " --service= SERVICE_NAME" ,
48
+ " --version= SERVICE_CONFIG_ID" ,
49
49
]
50
50
# [END esp]
51
51
ports :
Original file line number Diff line number Diff line change @@ -42,10 +42,10 @@ spec:
42
42
- name : esp
43
43
image : gcr.io/endpoints-release/endpoints-runtime:1
44
44
args : [
45
- " -p " , " 8081",
46
- " -a " , " 127.0.0.1:8080",
47
- " -s " , " SERVICE_NAME",
48
- " -v " , " SERVICE_CONFIG_ID",
45
+ " --http_port= 8081" ,
46
+ " --backend= 127.0.0.1:8080" ,
47
+ " --service= SERVICE_NAME" ,
48
+ " --version= SERVICE_CONFIG_ID" ,
49
49
]
50
50
# [END esp]
51
51
ports :
You can’t perform that action at this time.
0 commit comments