From 3ea9ce1b3dbdf431d54ae7699c13ed3afa5570a6 Mon Sep 17 00:00:00 2001 From: Derek Anderson Date: Mon, 6 May 2024 11:01:45 -0500 Subject: [PATCH] update make file to run node Signed-off-by: Derek Anderson --- Makefile | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/Makefile b/Makefile index d3316812..7a9ac0cc 100644 --- a/Makefile +++ b/Makefile @@ -55,3 +55,47 @@ setup: fi tar -xzf /tmp/blockless-runtime.tar.gz -C /tmp/runtime @echo "\nāœ… Done.\n" + + +.PHONY: run-head +run-head: + @echo "\nšŸš€ Launching Head Node...\n" + ./dist/b7s --peer-db /tmp/b7s/head-peer-db \ + --function-db /tmp/b7s/head-fdb \ + --log-level debug \ + --port 9527 \ + --role head \ + --workspace /tmp/debug/head \ + --private-key ./configs/testkeys/ident1/priv.bin \ + --rest-api :8081 + @echo "\nāœ… Head Node is running!\n" + + +.PHONY: run-worker +run-worker: + @echo "\nšŸš€ Launching Worker Node...\n" + ./dist/b7s --peer-db /tmp/b7s/head-peer-db \ + --function-db /tmp/b7s/head-fdb \ + --log-level debug \ + --port 9527 \ + --role head \ + --workspace /tmp/debug/head \ + --private-key ./configs/testkeys/ident1/priv.bin \ + --rest-api :8081 + @echo "\nāœ… Worker Node is running!\n" + + +.PHONY: run-worker +run-worker: + @echo "\nšŸš€ Launching Worker Node...\n" + ./dist/b7s --peer-db /tmp/b7s/worker-peer-db \ + --function-db /tmp/b7s/worker-fdb \ + --log-level debug \ + --port 0 \ + --role worker \ + --runtime-path /tmp/runtime \ + --runtime-cli bls-runtime \ + --workspace /tmp/debug/worker \ + --private-key ./configs/testkeys/ident2/priv.bin \ + --boot-nodes /ip4/0.0.0.0/tcp/9527/p2p/12D3KooWH9GerdSEroL2nqjpd2GuE5dwmqNi7uHX7FoywBdKcP4q + @echo "\nāœ… Worker Node is running!\n"