Skip to content

Commit

Permalink
adding cloudlab dist scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Cybergenik committed Jul 31, 2024
1 parent c394618 commit d969481
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
25 changes: 25 additions & 0 deletions examples/binutils/readelf/master_docker_dist.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

# List: screen -list
# Detach: Ctrl-a Ctrl-d
# Attach: screen -r <pid>.master

# Logging:
export HOPPER_LOG=1
export HOPPER_LOG_INTERVAL=10

# Spawn Master
export HOPPER_OUT="/hopper_out"
LOCAL_OUT="/proj/hopper-tests-PG0/defcon"

screen -S master -dm docker run -it --rm \
--name hopper-master \
--env TERM \
--env HOPPER_OUT \
--env HOPPER_LOG \
--env HOPPER_LOG_INTERVAL \
--volume $LOCAL_OUT:$HOPPER_OUT \
--publish 6969:6969 \
hopper-readelf:latest \
bash -c "cd hopper && ./hopper-master -I ./examples/binutils/readelf/in -H=20"

20 changes: 20 additions & 0 deletions examples/binutils/readelf/node_docker_dist.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

export HOPPER_OUT="/hopper_out"
LOCAL_OUT="/proj/hopper-tests-PG0/defcon"
MASTER_IP="10.10.1.1"
PORT="6969"

## Spawn Nodes
for ((i=$1;i<=$2;i++))
do
nohup docker run --rm \
--name hopper-node$i \
--env TERM \
--env HOPPER_OUT \
--volume $(pwd)$HOPPER_OUT:$HOPPER_OUT \
hopper-readelf:latest \
bash -c "
cd /hopper;
./hopper-node -I $i -T ./readelf_target -M $MASTER_IP -P $PORT --args '-a @@'" &> /dev/null &
done

0 comments on commit d969481

Please sign in to comment.