diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index b9eafa7..0000000 --- a/Dockerfile +++ /dev/null @@ -1,26 +0,0 @@ -FROM golang:latest AS builder - -WORKDIR /app - -# Install protoc -RUN apt-get update && apt-get install -y protobuf-compiler - -# Install protoc Go plugins -RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest && \ - go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest - -ENV PATH=$PATH:/root/go/bin - -COPY go.mod ./ -COPY proto ./proto - -# Generate proto files -RUN protoc --go_out=. --go_opt=paths=source_relative \ - --go-grpc_out=. --go-grpc_opt=paths=source_relative \ - proto/agent.proto - -RUN go mod tidy - -FROM scratch - -COPY --from=builder /app . diff --git a/Makefile b/Makefile deleted file mode 100644 index b22498e..0000000 --- a/Makefile +++ /dev/null @@ -1,33 +0,0 @@ -.PHONY: generate build clean - -PROTOC := protoc -GO_PROTOC_GEN_GO := $(shell go env GOPATH)/bin/protoc-gen-go -GO_PROTOC_GEN_GO_GRPC := $(shell go env GOPATH)/bin/protoc-gen-go-grpc - -PROTO_FILES := proto/agent.proto -PROTO_OUT_DIR := proto - -generate: - @echo "Generating Go code from proto files..." - $(PROTOC) --go_out=. --go_opt=paths=source_relative \ - --go-grpc_out=. --go-grpc_opt=paths=source_relative \ - $(PROTO_FILES) - @echo "Proto generation complete" - -build: generate - @echo "Building proto module..." - go mod tidy - @echo "Build complete" - -clean: - @echo "Cleaning generated files..." - rm -f $(PROTO_OUT_DIR)/*.pb.go - rm -f $(PROTO_OUT_DIR)/*_grpc.pb.go - @echo "Clean complete" - -help: - @echo "Available targets:" - @echo " generate - Generate Go code from proto files" - @echo " build - Generate proto and tidy go modules" - @echo " clean - Remove generated files" - @echo " help - Show this help message"