From 64dbce0f485302cbaeffbee17b6417036974b6a5 Mon Sep 17 00:00:00 2001 From: Ahmet Alp Balkan Date: Wed, 19 Sep 2018 11:25:35 -0700 Subject: [PATCH] update dockerfiles with released health probe Signed-off-by: Ahmet Alp Balkan --- src/currencyservice/Dockerfile | 5 +++-- src/paymentservice/Dockerfile | 7 +++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/currencyservice/Dockerfile b/src/currencyservice/Dockerfile index 142aa88..769e464 100644 --- a/src/currencyservice/Dockerfile +++ b/src/currencyservice/Dockerfile @@ -1,9 +1,10 @@ -FROM gcr.io/microservices-demo-app/grpc-health-probe:1.0 AS probe FROM node:8 +RUN GRPC_HEALTH_PROBE_VERSION=v0.1.0-alpha.1 && \ + wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64 && \ + chmod +x /bin/grpc_health_probe WORKDIR /usr/src/app COPY package*.json ./ RUN npm install --only=production COPY . . -COPY --from=probe /bin/grpc_health_probe /bin/grpc_health_probe EXPOSE 7000 CMD [ "node", "server.js" ] diff --git a/src/paymentservice/Dockerfile b/src/paymentservice/Dockerfile index 8119249..abe0eba 100644 --- a/src/paymentservice/Dockerfile +++ b/src/paymentservice/Dockerfile @@ -1,6 +1,7 @@ -FROM gcr.io/microservices-demo-app/grpc-health-probe:1.0 AS probe - FROM node:8 +RUN GRPC_HEALTH_PROBE_VERSION=v0.1.0-alpha.1 && \ + wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64 && \ + chmod +x /bin/grpc_health_probe WORKDIR /usr/src/app @@ -10,8 +11,6 @@ RUN npm install --only=production COPY . . -COPY --from=probe /bin/grpc_health_probe /bin/grpc_health_probe - EXPOSE 50051 CMD [ "node", "index.js" ]