currencyservice: change port to 7000

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2018-06-29 13:45:03 -07:00
parent ca3ace3f65
commit ab045ae6e7
5 changed files with 13 additions and 12 deletions

View File

@ -20,10 +20,10 @@ spec:
value: "7070"
- name: LISTEN_ADDR
value: "0.0.0.0"
- name: GRPC_TRACE
value: "all"
- name: GRPC_VERBOSITY
value: "debug"
# - name: GRPC_TRACE
# value: "all"
# - name: GRPC_VERBOSITY
# value: "debug"
resources:
requests:
cpu: 200m

View File

@ -13,15 +13,15 @@ spec:
- name: server
image: currencyservice
ports:
- containerPort: 31337
- containerPort: 7000
readinessProbe:
periodSeconds: 5
tcpSocket:
port: 31337
port: 7000
livenessProbe:
periodSeconds: 5
tcpSocket:
port: 31337
port: 7000
resources:
requests:
cpu: 100m
@ -40,4 +40,4 @@ spec:
app: currencyservice
ports:
- port: 7000
targetPort: 31337
targetPort: 7000

View File

@ -3,5 +3,5 @@ WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install --only=production
COPY . .
EXPOSE 31337
CMD [ "node", "server.js" ]
EXPOSE 7000
CMD [ "node", "server.js" ]

View File

@ -20,7 +20,7 @@ const request = require('request');
const xml2js = require('xml2js');
const PROTO_PATH = path.join(__dirname, './proto/demo.proto');
const PORT = 31337;
const PORT = 7000;
const DATA_URL = 'http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml';
const shopProto = grpc.load(PROTO_PATH).hipstershop;

View File

@ -22,7 +22,8 @@ RUN go install .
# ---
FROM alpine as release
RUN apk add --no-cache ca-certificates
RUN apk add --no-cache ca-certificates \
busybox-extras net-tools bind-tools
WORKDIR /frontend
COPY --from=builder /go/bin/frontend /frontend/server
COPY ./templates ./templates