Browse Source

updated docker for floram stuff

avadapal 2 years ago
parent
commit
3b53627f20
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Dockerfile

+ 3 - 2
Dockerfile

@@ -5,7 +5,7 @@ WORKDIR /root
 RUN apt update && apt install -y wget git build-essential
 RUN apt-get install -y libbsd-dev libssl-dev libboost-all-dev iproute2 iperf iputils-ping wget unzip
 RUN apt-get install wget
-
+RUN git clone git://git-crysp.uwaterloo.ca/duoram
 RUN apt-get -y install ocaml libgcrypt20-dev ocaml-findlib opam m4 
 RUN opam init -y && opam switch 4.06.0 && eval `opam config env` && opam install -y camlp4 ocamlfind ocamlbuild batteries
 RUN git clone https://github.com/samee/obliv-c.git 
@@ -13,7 +13,8 @@ RUN apt-get install -y ocamlbuild
 RUN cd obliv-c && ./configure && make
 RUN wget https://gitlab.com/neucrypt/floram/-/archive/floram-release/floram-floram-release.zip && unzip floram-floram-release.zip
 RUN cd floram-floram-release &&  sed -i '4i\OBLIVC_PATH = ~/obliv-c' Makefile && sed -e '8s/$/ -D _Float128=double/' Makefile > tmp && cp tmp Makefile && rm tmp
-RUN cd floram-floram-release/tests && touch bench_oram_readwrite.oc
+RUN cd floram-floram-release && sed -e '28s/$/ bench_oram_readwrite/' Makefile > tmp && cp tmp Makefile && rm tmp
+RUN cd floram-floram-release/tests && touch bench_oram_readwrite.oc && cp ~/duoram/Docker-floram/bench_oram_readwrite.oc bench_oram_readwrite.oc
 RUN cd floram-floram-release && make