add control wrapper

This commit is contained in:
Ben Grewell
2021-04-01 13:19:47 -07:00
parent 1dd7340d4b
commit ab0c867aa1
11 changed files with 380 additions and 79 deletions

21
api/Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
# Dockerfile.protogen
FROM golang:latest
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
RUN apt update
RUN apt install -y protobuf-compiler python3 python3-pip
RUN go get -u github.com/golang/protobuf/protoc-gen-go
RUN pip3 install grpcio-tools
RUN export PATH=$PATH:$GOPATH/bin
RUN echo $PATH
COPY proto/control.proto control.proto
RUN mkdir go
RUN protoc -I /. --go_out=plugins=grpc:go control.proto