experiments-online.sh 656 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/duoram-online party2 ./p2 $A $B 15 128 128 128 10 &
  9. sleep 2
  10. echo "P2 launched"
  11. docker exec -w /root/duoram/duoram-online party1 ./duoram1 $A $C 15 128 128 128 10 &
  12. sleep 2
  13. echo "P1 launched"
  14. docker exec -w /root/duoram/duoram-online party0 ./duoram0 $B $C 15 128 128 128 10 &
  15. echo "P0 launched"
  16. wait