From e3836c3757f3f9578b93ba19ac1ff6e19b00566c Mon Sep 17 00:00:00 2001 From: Jeff Mendoza Date: Wed, 16 Nov 2016 15:23:56 -0800 Subject: [PATCH] Update ports for endpoints sample. --- endpoints/getting-started/Dockerfile.custom | 7 ++++++- endpoints/getting-started/container-engine.yaml | 12 ++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/endpoints/getting-started/Dockerfile.custom b/endpoints/getting-started/Dockerfile.custom index 3c9f9fe70c..6dc65ab419 100644 --- a/endpoints/getting-started/Dockerfile.custom +++ b/endpoints/getting-started/Dockerfile.custom @@ -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"] diff --git a/endpoints/getting-started/container-engine.yaml b/endpoints/getting-started/container-engine.yaml index 6d07c37013..6764b299c1 100644 --- a/endpoints/getting-started/container-engine.yaml +++ b/endpoints/getting-started/container-engine.yaml @@ -19,7 +19,7 @@ metadata: spec: ports: - port: 80 - targetPort: 8080 + targetPort: 8081 protocol: TCP name: http selector: @@ -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