#!/bin/bash # Clone a specific branch and commit of a repo clone() { url="$1" dirname="$2" commit="$3" git clone "$url" "$dirname" || return 1 cd "$dirname" && \ git checkout "$commit" && \ cd .. } ## Belarus 2020-2021 clone https://git-crysp.uwaterloo.ca/vvecna/belarus-2020-2021 belarus-2020-2021 64fb57f22ec274a2419cda90e0d4da9ec88fe2a6 ## Build docker for analysis docker build -t tp-analysis . ## Lox/Troll Patrol # Set up dependencies clone https://github.com/arkworks-rs/spongefish spongefish fcc277f8a857fdeeadd7cca92ab08de63b1ff1a1 && \ clone https://github.com/sigma-rs/sigma-proofs sigma-proofs 50716322b5b0d8a2b03c4637d5f4a8ee092c8b36 && \ clone https://git-crysp.uwaterloo.ca/SigmaProtocol/sigma-compiler sigma-compiler e00bc5aee794bccad5e1ae4383ad83c2e7815340 && \ clone https://git-crysp.uwaterloo.ca/SigmaProtocol/cmz cmz 07072dcd2c123aa7e9b56027cd7804fbe67c9bfb && \ clone https://git-crysp.uwaterloo.ca/vvecna/lox-troll-patrol-extension.git lox-old 2b951fe877f9ea39b4adf0faf18be312ef25ace9 && \ clone https://git-crysp.uwaterloo.ca/vvecna/lox-troll-patrol-extension.git lox-new 349f92f4c4706e30b6960408ae167227c6b8ec82 && \ clone https://git-crysp.uwaterloo.ca/vvecna/lox-troll-patrol-extension.git troll-patrol 1165196768a4c7f2a975bc38f799cbac2d557c03 # Copy Dockerfile to lox-new and troll-patrol cp conf/Dockerfile lox-new/ cp conf/Dockerfile troll-patrol/ # For each, build the docker container for i in lox-old lox-new troll-patrol; do cd "$i" && docker build -t "$i" . && cd .. done