setup.sh 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/bash
  2. ## Belarus 2020-2021
  3. git clone -b main https://git-crysp.uwaterloo.ca/vvecna/belarus-2020-2021.git
  4. ## Build docker for analysis
  5. docker build -t tp-analysis .
  6. ## Lox/Troll Patrol
  7. # Set up dependencies
  8. git clone https://github.com/arkworks-rs/spongefish && \
  9. cd spongefish && \
  10. git checkout fcc277f8a857fdeeadd7cca92ab08de63b1ff1a1 && \
  11. cd .. && \
  12. git clone -b victor/artifact https://github.com/sigma-rs/sigma-proofs && \
  13. git clone -b artifact https://git-crysp.uwaterloo.ca/SigmaProtocol/sigma-compiler && \
  14. git clone -b artifact https://git-crysp.uwaterloo.ca/SigmaProtocol/cmz
  15. # Clone the three versions of Lox repo
  16. git clone -b lox-original https://git-crysp.uwaterloo.ca/vvecna/lox-troll-patrol-extension.git lox-old && \
  17. git clone -b lox-extension https://git-crysp.uwaterloo.ca/vvecna/lox-troll-patrol-extension.git lox-new && \
  18. git clone -b main https://git-crysp.uwaterloo.ca/vvecna/lox-troll-patrol-extension.git troll-patrol && \
  19. # Copy Dockerfile to lox-new and troll-patrol
  20. cp conf/Dockerfile lox-new/
  21. cp conf/Dockerfile troll-patrol/
  22. # For each, build the docker container
  23. for i in lox-old lox-new troll-patrol; do
  24. cd "$i" && docker build -t "$i" . && cd ..
  25. done