generate protobuf client/server
This commit is contained in:
@@ -6,7 +6,7 @@ LABEL maintainer="Benjamin Grewell <bgrewell@gmail.com>"
|
||||
ENV PROTOC_VERSION 3.6.1
|
||||
ENV PROTOC_GEN_GO_VERSION v1.2.0
|
||||
|
||||
WORKDIR /go/src/github.com/BGrewell/go-iperf/api/proto
|
||||
WORKDIR /go/src/github.com/BGrewell/go-iperf/api
|
||||
|
||||
RUN apt update
|
||||
RUN apt install -y protobuf-compiler python3 python3-pip
|
||||
@@ -15,7 +15,7 @@ RUN pip3 install grpcio-tools
|
||||
RUN export PATH=$PATH:$GOPATH/bin
|
||||
RUN echo $PATH
|
||||
|
||||
COPY proto/control.proto control.proto
|
||||
COPY proto/control.proto proto/control.proto
|
||||
|
||||
RUN mkdir go
|
||||
RUN protoc -I /. --go_out=plugins=grpc:go control.proto
|
||||
RUN protoc -I proto/. --go_out=plugins=grpc:go control.proto
|
||||
|
||||
Reference in New Issue
Block a user