1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- #!/bin/bash
- if [[ $BASH_SOURCE = */* ]]; then
- cd -- "${BASH_SOURCE%/*}/" || exit
- fi
- mkdir -p comps
- clone_or_update() {
- repourl="$1"
- repodir="$2"
- tag="$3"
- if [ -d comps/${repodir}/.git ]; then
- ( cd comps/${repodir} && git fetch --tags -f origin && \
- git checkout $tag && git pull ) || exit 1
- else
- ( cd comps && git clone ${repourl} ${repodir} && cd ${repodir} && \
- git checkout $tag ) || exit 1
- fi
- }
- clone_or_update \
- https://git-crysp.uwaterloo.ca/avadapal/floram-repro-prac \
- floram master
- clone_or_update \
- https://git-crysp.uwaterloo.ca/avadapal/3p-circuit-oram-prac-repro \
- circuit-oram master
- clone_or_update \
- https://git-crysp.uwaterloo.ca/avadapal/ramen-dockerization \
- ramen master
- clone_or_update \
- https://git-crysp.uwaterloo.ca/iang/duoram-prac-repro \
- duoram prac_repro
- ./stop-all-dockers
- echo "Building PRAC docker..."
- echo
- ( cd ../docker && ./build-docker ) || exit 1
- echo
- echo "Building Duoram docker..."
- echo
- ( cd comps/duoram/Docker && ./build-docker ) || exit 1
- echo
- echo "Building Floram docker..."
- echo
- ( cd comps/floram && ./build-docker ) || exit 1
- echo
- echo "Building Circuit ORAM docker..."
- echo
- ( cd comps/circuit-oram/docker && ./build-docker ) || exit 1
- echo
- echo "Building Ramen docker..."
- echo
- ( cd comps/ramen/Docker && ./build-docker ) || exit 1
- echo
- echo "Done."
|