Skip to content

Commit

Permalink
Bump dependencies in Go services (#152)
Browse files Browse the repository at this point in the history
* Bump core Go deps

* Bump more deps

* Regenerate pb.go files
  • Loading branch information
pellared authored Sep 5, 2024
1 parent e6eafcb commit 8ba12d6
Show file tree
Hide file tree
Showing 30 changed files with 14,757 additions and 8,102 deletions.
2 changes: 2 additions & 0 deletions pb/demo.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ syntax = "proto3";

package hipstershop;

option go_package = "github.com/signalfx/miscroservices-demo/hipstershop";

// -----------------Cart service-----------------

service CartService {
Expand Down
9 changes: 3 additions & 6 deletions src/checkoutservice/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
FROM golang:1.20-alpine as builder
FROM golang:1.22-alpine AS builder
RUN apk add --no-cache ca-certificates git

ENV PROJECT github.com/signalfx/microservices-demo/src/checkoutservice
WORKDIR /go/src/$PROJECT

WORKDIR /app
COPY . .
ENV GO111MODULE on
RUN go build -o /go/bin/checkoutservice .

FROM alpine as release
FROM alpine AS release
RUN apk add --no-cache ca-certificates
RUN GRPC_HEALTH_PROBE_VERSION=v0.2.0 && \
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 && \
Expand Down
5 changes: 3 additions & 2 deletions src/checkoutservice/genproto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@

#!/bin/bash -e

PATH=$PATH:$GOPATH/bin
PATH=$PATH:$(go env GOPATH)/bin
protodir=../../pb
outdir=./genproto

protoc --go_out=plugins=grpc:genproto -I $protodir $protodir/demo.proto
protoc --proto_path=$protodir --go_out=./$outdir --go_opt=paths=source_relative --go-grpc_out=./$outdir --go-grpc_opt=paths=source_relative $protodir/demo.proto
Loading

0 comments on commit 8ba12d6

Please sign in to comment.