Skip to content

Commit

Permalink
update make file to run node
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Anderson <[email protected]>
  • Loading branch information
dmikey committed May 6, 2024
1 parent f06bc2b commit 3ea9ce1
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 3ea9ce1

Please sign in to comment.