Skip to content

Commit

Permalink
agent and control plane scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Meshiest committed Mar 22, 2024
1 parent eaeb0ce commit 5ce96e2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
21 changes: 21 additions & 0 deletions scripts/agent.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash

# spin up an agent with unique ports

INDEX="$1"

# check if index is set
if [ -z "$INDEX" ]; then
echo "Usage: $0 <node_id>"
exit 1
fi

DATA_PATH="$(pwd)/snot-data/$INDEX"

echo "Starting ${DATA_PATH}"
cargo run --release -p snot-agent -- \
--path "$DATA_PATH" \
--bind_addr "0.0.0.0" \
--bft "500$INDEX" \
--rest "303$INDEX" \
--node "413$INDEX"
3 changes: 3 additions & 0 deletions scripts/control_plane.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

cargo run -p snot

0 comments on commit 5ce96e2

Please sign in to comment.