Skip to content

Commit e3836c3

Browse files
committed
Update ports for endpoints sample.
1 parent 3c77013 commit e3836c3

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed
+6-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
# The Google App Engine Flexible Environment base Docker image can
2+
# also be used on Google Container Engine, or any other Docker host.
3+
# This image is based on Debian Jessie and includes nodejs and npm
4+
# installed from nodejs.org. The source is located in
5+
# https://github.com/GoogleCloudPlatform/nodejs-docker
16
FROM gcr.io/google_appengine/nodejs
27

38
ADD . /app
49
WORKDIR /app
510

611
RUN npm install
7-
ENV PORT=8081
12+
ENV PORT=8080
813
ENTRYPOINT ["npm", "start"]

endpoints/getting-started/container-engine.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ metadata:
1919
spec:
2020
ports:
2121
- port: 80
22-
targetPort: 8080
22+
targetPort: 8081
2323
protocol: TCP
2424
name: http
2525
selector:
@@ -42,15 +42,15 @@ spec:
4242
- name: esp
4343
image: b.gcr.io/endpoints/endpoints-runtime:0.3
4444
args: [
45-
"-p", "8080",
46-
"-a", "127.0.0.1:8081",
45+
"-p", "8081",
46+
"-a", "127.0.0.1:8080",
4747
"-s", "SERVICE_NAME",
4848
"-v", "SERVICE_VERSION",
4949
]
5050
# [END esp]
5151
ports:
52-
- containerPort: 8080
52+
- containerPort: 8081
5353
- name: echo
54-
image: gcr.io/google-samples/node-echo:1.0
54+
image: gcr.io/google-samples/echo-node:1.0
5555
ports:
56-
- containerPort: 8081
56+
- containerPort: 8080

0 commit comments

Comments
 (0)