cartservice: add an exec probe written in Go

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2018-07-07 16:56:52 -07:00
parent 420a074091
commit 0c1068aec6
5 changed files with 2276 additions and 0 deletions

View file

@ -1,4 +1,13 @@
# cartservice_probe
FROM golang:1.10 as builder
WORKDIR /src/microservices-demo/cartservice/probe
COPY probe/ .
RUN go get -d ./...
RUN go build -o /cartservice_probe .
# cartservice
FROM gcr.io/google-appengine/aspnetcore:2.1.0
COPY --from=builder /cartservice_probe /cartservice_probe
RUN apt update && apt install net-tools telnet
WORKDIR /app
COPY . .