#!/bin/bash docker-compose -f composeRep.yaml up boot_container -d echo "==============================================================================" echo "Storing 2 values: Long ttl and short ttl" ./commandlineDHT/commandlineDHT -m put -ip 10.0.0.10:7001 -key Short -value Short -ttl 5 ./commandlineDHT/commandlineDHT -m put -ip 10.0.0.10:7001 -key Long -value Long -ttl 5000 echo "Looking up the vaules" echo "Short ttl:" ./commandlineDHT/commandlineDHT -m get -ip 10.0.0.10:7001 -key Short echo "Long ttl:" ./commandlineDHT/commandlineDHT -m get -ip 10.0.0.10:7001 -key Long echo "Waiting until refres timer passes" sleep 20 echo "Triggering update" ./commandlineDHT/commandlineDHT -m find -ip 10.0.0.10:6001 -cert ./shared_data/cert_boot.pem -key test echo "Trying to find the values again" echo "Short ttl:" ./commandlineDHT/commandlineDHT -m get -ip 10.0.0.10:7001 -key Short echo "Long ttl:" ./commandlineDHT/commandlineDHT -m get -ip 10.0.0.10:7001 -key Long echo "==============================================================================" docker-compose -f composeRep.yaml down