Skip to content

Commit

Permalink
chore: use goreman to start principal and agent
Browse files Browse the repository at this point in the history
Signed-off-by: Jayendra Parsai <[email protected]>
  • Loading branch information
Jayendra Parsai committed Oct 4, 2024
1 parent 77d8900 commit 8a5a6d8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,16 @@ PROTOC_GEN_GO_GRPC_VERSION=v1.2
GOLANG_CI_LINT_VERSION=v1.58.1
MOCKERY_V2_VERSION?=v2.43.0

AUTONOMOUS_MODE?=false
GOBIN=$(shell go env GOPATH)/bin

.PHONY: build
build: agent principal

.PHONY: start-local
start-local:
AUTONOMOUS_MODE=$(AUTONOMOUS_MODE) $(GOBIN)/goreman -set-ports=false -f hack/demo-env/Procfile start

.PHONY: test
test:
mkdir -p test/out
Expand Down
2 changes: 2 additions & 0 deletions hack/demo-env/Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
principal: hack/demo-env/start-principal.sh
agent: if [ "$AUTONOMOUS_MODE" = "true" ]; then hack/demo-env/start-agent-autonomous.sh; else hack/demo-env/start-agent-managed.sh; fi

0 comments on commit 8a5a6d8

Please sign in to comment.