fix go builds after deleting pkg internal
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
dff246a3d7
commit
61cf05844d
13 changed files with 56 additions and 57 deletions
|
@ -8,7 +8,7 @@ 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
|
||||
RUN apt-get update && apt-get install net-tools telnet
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN dotnet restore && \
|
||||
|
|
|
@ -6,10 +6,9 @@ import (
|
|||
"os"
|
||||
"time"
|
||||
|
||||
"microservices-demo/src/internal"
|
||||
|
||||
pb "./genproto"
|
||||
|
||||
"go.opencensus.io/plugin/ocgrpc"
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
|
||||
|
@ -24,7 +23,8 @@ func main() {
|
|||
"127.0.0.1:"+port,
|
||||
grpc.WithBlock(),
|
||||
grpc.WithTimeout(time.Second*3),
|
||||
internal.DefaultDialOptions(),
|
||||
grpc.WithInsecure(),
|
||||
grpc.WithStatsHandler(&ocgrpc.ClientHandler{}),
|
||||
)
|
||||
if err != nil {
|
||||
log.Fatalf("probe failed: failed to connect: %+v", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue