Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ PROTOC_GEN_GO_VERSION:=v1.34.2
PROTOC_GEN_GO_GRPC_VERSION:=v1.5.1

# add any components here after their directory has been created with .proto files
COMPONENTS:=connector device
COMPONENTS:=common connector device
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't need common here since its being mounted as a separate volume below.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but we still need to built it to get the go code.


all: docker-run

docker-run: docker-build
$(foreach component, $(COMPONENTS), docker run -v $(PWD)/$(component):/app/proto $(NAME)-builder;)
$(foreach component, $(COMPONENTS), docker run -v $(PWD)/common:/app/shared/common -v $(PWD)/$(component):/app/proto $(NAME)-builder;)

docker-build:
docker build --build-arg PROTOC_GEN_GO_VERSION=$(PROTOC_GEN_GO_VERSION) --build-arg PROTOC_GEN_GO_GRPC_VERSION=$(PROTOC_GEN_GO_GRPC_VERSION) -t $(NAME)-builder .
Loading