22 lines
786 B
Bash
22 lines
786 B
Bash
|
docker-compose -f composeLarge.yaml up boot_container -d
|
||
|
docker-compose -f composeLarge.yaml up -d
|
||
|
|
||
|
./commandlineDHT/commandlineDHT -m put -ip 127.0.0.1:7001 -key Hello -value "Big World"
|
||
|
./commandlineDHT/commandlineDHT -m put -ip 127.0.0.1:7001 -key Small -value "Small World" -rep 5
|
||
|
|
||
|
for i in {1..40}
|
||
|
do
|
||
|
ip=$((100+i))
|
||
|
echo "Node ${i}:"
|
||
|
echo "On node:"
|
||
|
./commandlineDHT/commandlineDHT -m find -ip 10.0.0.${ip}:6001 -cert ./shared_data/cert${i}.pem -key Hello
|
||
|
./commandlineDHT/commandlineDHT -m find -ip 10.0.0.${ip}:6001 -cert ./shared_data/cert${i}.pem -key Small
|
||
|
echo "In network:"
|
||
|
./commandlineDHT/commandlineDHT -m get -ip 10.0.0.${ip}:7001 -key Hello
|
||
|
./commandlineDHT/commandlineDHT -m get -ip 10.0.0.${ip}:7001 -key Small
|
||
|
|
||
|
done
|
||
|
|
||
|
docker-compose -f composeLarge.yaml down
|
||
|
|