From 206a7a3cd9276c48125cd630b1e8032f7aa90490 Mon Sep 17 00:00:00 2001 From: Jayendra Parsai Date: Fri, 29 Nov 2024 18:34:14 +0530 Subject: [PATCH] chore: use goreman to start principal and agent (#187) Signed-off-by: Jayendra Parsai Co-authored-by: Jayendra Parsai --- hack/demo-env/Makefile | 10 ++++++++++ hack/demo-env/Procfile | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 hack/demo-env/Makefile create mode 100644 hack/demo-env/Procfile diff --git a/hack/demo-env/Makefile b/hack/demo-env/Makefile new file mode 100644 index 0000000..c60d594 --- /dev/null +++ b/hack/demo-env/Makefile @@ -0,0 +1,10 @@ +AUTONOMOUS_MODE?=false +GOBIN=$(shell go env GOPATH)/bin + +.PHONY: start-local +start-local: + AUTONOMOUS_MODE=$(AUTONOMOUS_MODE) $(GOBIN)/goreman -set-ports=false -f Procfile start + +.PHONY: help +help: + @echo "Not yet, sorry." diff --git a/hack/demo-env/Procfile b/hack/demo-env/Procfile new file mode 100644 index 0000000..55c637e --- /dev/null +++ b/hack/demo-env/Procfile @@ -0,0 +1,2 @@ +principal: ./start-principal.sh +agent: sleep 15s && if [ "$AUTONOMOUS_MODE" = "true" ]; then ./start-agent-autonomous.sh; else ./start-agent-managed.sh; fi