cartservice: add an exec probe written in Go
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
420a074091
commit
0c1068aec6
5 changed files with 2276 additions and 0 deletions
|
@ -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 . .
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue