experiments.sh 646 B

1234567891011121314151617
  1. #!/bin/bash
  2. A=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' party0)
  3. B=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' party1)
  4. C=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' party2)
  5. echo $A
  6. echo $B
  7. echo $C
  8. docker exec -w /root/duoram/preprocessing party2 ./p2preprocessing $A $B 4 15 &
  9. sleep 2
  10. echo "P2 launched"
  11. docker exec -w /root/duoram/preprocessing party1 ./preprocessing1 $A $C 4 15 &
  12. sleep 2
  13. echo "P1 launched"
  14. docker exec -w /root/duoram/preprocessing party0 ./preprocessing0 $B $C 4 15 &
  15. echo "P0 launched"
  16. wait