Remove Dockerfile and Makefile - not needed

This commit is contained in:
Kaien 2026-03-03 04:45:46 +03:00
parent d063433b69
commit ad2a795de7
2 changed files with 0 additions and 59 deletions

View File

@ -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 .

View File

@ -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"