Skip to content

Commit

Permalink
Update ports for endpoints sample.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffmendoza committed Nov 16, 2016
1 parent 73a0764 commit 76c2ffd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
7 changes: 6 additions & 1 deletion endpoints/getting-started/Dockerfile.custom
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# The Google App Engine Flexible Environment base Docker image can
# also be used on Google Container Engine, or any other Docker host.
# This image is based on Debian Jessie and includes nodejs and npm
# installed from nodejs.org. The source is located in
# https://github.com/GoogleCloudPlatform/nodejs-docker
FROM gcr.io/google_appengine/nodejs

ADD . /app
WORKDIR /app

RUN npm install
ENV PORT=8081
ENV PORT=8080
ENTRYPOINT ["npm", "start"]
12 changes: 6 additions & 6 deletions endpoints/getting-started/container-engine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ metadata:
spec:
ports:
- port: 80
targetPort: 8080
targetPort: 8081
protocol: TCP
name: http
selector:
Expand All @@ -42,15 +42,15 @@ spec:
- name: esp
image: b.gcr.io/endpoints/endpoints-runtime:0.3
args: [
"-p", "8080",
"-a", "127.0.0.1:8081",
"-p", "8081",
"-a", "127.0.0.1:8080",
"-s", "SERVICE_NAME",
"-v", "SERVICE_VERSION",
]
# [END esp]
ports:
- containerPort: 8080
- containerPort: 8081
- name: echo
image: gcr.io/google-samples/node-echo:1.0
image: gcr.io/google-samples/echo-node:1.0
ports:
- containerPort: 8081
- containerPort: 8080

0 comments on commit 76c2ffd

Please sign in to comment.