start-docker 994 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. # You can set $DUORAM_STORAGE to a directory on the host to avoid
  3. # writing large amounts of data into the docker. It's best if this is on
  4. # a fast storage medium (or even a ramdisk). (This functionality is
  5. # actually unused for the USENIX Security artifact.)
  6. if [ "$DUORAM_STORAGE" != "" ]; then
  7. mkdir -p ${DUORAM_STORAGE}/party{0,1,2}
  8. S0ARG="-v ${DUORAM_STORAGE}/party0:/root/duoram/duoram-online/preprocflags"
  9. S1ARG="-v ${DUORAM_STORAGE}/party1:/root/duoram/duoram-online/preprocflags"
  10. S2ARG="-v ${DUORAM_STORAGE}/party2:/root/duoram/duoram-online/preprocflags"
  11. fi
  12. # The SYS_NICE capability allows you to use numactl to pin processes to
  13. # NUMA nodes and/or individual cores
  14. docker run -d --cap-add SYS_NICE --rm --name duoram_p0 -h duoram_p0 $S0ARG -t duoram
  15. docker run -d --cap-add SYS_NICE --rm --name duoram_p1 -h duoram_p1 $S1ARG -t duoram
  16. docker run -d --cap-add SYS_NICE --rm --name duoram_p2 -h duoram_p2 $S2ARG -t duoram
  17. echo "All dockers launched"