Compare commits
2 Commits
c945f72cac
...
15ad9c02ed
Author | SHA1 | Date |
---|---|---|
|
15ad9c02ed | |
|
dc42213aec |
|
@ -6,11 +6,13 @@ exp_num="$1"
|
|||
secrecy="$2"
|
||||
harshness="$3"
|
||||
prob="$4"
|
||||
uuid="$5"
|
||||
|
||||
f1="configs/troll_patrol_config.json"
|
||||
cp "${f1}.template" "${f1}"
|
||||
f2="configs/simulation_config.json"
|
||||
cp "${f2}.template" "${f2}"
|
||||
mkdir -p "configs/${uuid}"
|
||||
f1="configs/${uuid}/troll_patrol_config.json"
|
||||
cp "configs/troll_patrol_config.json.template" "${f1}"
|
||||
f2="configs/${uuid}/simulation_config.json"
|
||||
cp "configs/simulation_config.json.template" "${f2}"
|
||||
|
||||
# Troll Patrol config
|
||||
sed -i "s/HARSHNESS/$harshness/" "${f1}"
|
||||
|
|
|
@ -9,10 +9,10 @@ container=$(docker run --rm -d -i $img)
|
|||
# Create results directory if it doesn't already exist
|
||||
mkdir -p results/${exp_num}
|
||||
|
||||
docker cp configs/troll_patrol_config.json $container:/home/user/troll-patrol/
|
||||
cat configs/troll_patrol_config.json >> "results/${exp_num}/${uuid}"-troll_patrol_config.json
|
||||
docker cp configs/simulation_config.json $container:/home/user/simulation/
|
||||
cat configs/simulation_config.json >> "results/${exp_num}/${uuid}"-simulation_config.json
|
||||
docker cp configs/${uuid}/troll_patrol_config.json $container:/home/user/troll-patrol/
|
||||
cat configs/${uuid}/troll_patrol_config.json >> "results/${exp_num}/${uuid}"-troll_patrol_config.json
|
||||
docker cp configs/${uuid}/simulation_config.json $container:/home/user/simulation/
|
||||
cat configs/${uuid}/simulation_config.json >> "results/${exp_num}/${uuid}"-simulation_config.json
|
||||
|
||||
# Run rdsys to give bridges to LA
|
||||
docker exec $container sh \
|
||||
|
|
|
@ -26,7 +26,7 @@ run_docker() {
|
|||
# Get a UUID so each simulation run stores its output in a different file
|
||||
uuid=$(cat /proc/sys/kernel/random/uuid)
|
||||
|
||||
./scripts/gen-configs.sh $1 $2 $3 $4
|
||||
./scripts/gen-configs.sh $1 $2 $3 $4 $uuid
|
||||
./scripts/run-container.sh $1 $uuid
|
||||
|
||||
# If harshness = 2, probability of users submitting reports=0.25,
|
||||
|
|
Loading…
Reference in New Issue