Dockerfile 1.2 KB

12345678910111213141516171819202122
  1. FROM ubuntu:18.04
  2. ARG DEBIAN_FRONTEND=noninteractive
  3. #the above line is avoid interaction
  4. WORKDIR /root
  5. RUN apt update && apt install -y wget git build-essential
  6. RUN apt-get install -y libbsd-dev libssl-dev libboost-all-dev iproute2 iperf iputils-ping wget unzip net-tools
  7. RUN apt-get install wget
  8. RUN git clone git://git-crysp.uwaterloo.ca/duoram
  9. RUN apt-get -y install ocaml libgcrypt20-dev ocaml-findlib opam m4
  10. RUN opam init -y && opam switch 4.06.0 && eval `opam config env` && opam install -y camlp4 ocamlfind ocamlbuild batteries
  11. RUN git clone https://github.com/samee/obliv-c.git
  12. RUN apt-get install -y ocamlbuild
  13. RUN cd obliv-c && ./configure && make
  14. RUN wget https://gitlab.com/neucrypt/floram/-/archive/floram-release/floram-floram-release.zip && unzip floram-floram-release.zip
  15. 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
  16. RUN cd floram-floram-release && sed -e '28s/$/ bench_oram_readwrite/' Makefile > tmp && cp tmp Makefile && rm tmp
  17. RUN cd floram-floram-release/tests && touch bench_oram_readwrite.oc && cp ~/duoram/Docker-floram/bench_oram_readwrite.oc bench_oram_readwrite.oc
  18. RUN cd floram-floram-release && make