File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed
endpoints/getting-started Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 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
16FROM gcr.io/google_appengine/nodejs
27
38ADD . /app
49WORKDIR /app
510
611RUN npm install
7- ENV PORT=8081
12+ ENV PORT=8080
813ENTRYPOINT ["npm", "start"]
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ metadata:
1919spec :
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
You can’t perform that action at this time.
0 commit comments