Bladeren bron

Improve Docker build script

Ian Goldberg 1 jaar geleden
bovenliggende
commit
5b5e25bbfe
2 gewijzigde bestanden met toevoegingen van 7 en 8 verwijderingen
  1. 5 7
      Docker/Dockerfile
  2. 2 1
      Docker/build-docker.sh

+ 5 - 7
Docker/Dockerfile

@@ -3,12 +3,10 @@ ARG DEBIAN_FRONTEND=noninteractive
 #the above line is avoid interaction
 RUN apt update && apt install -y wget git build-essential net-tools iproute2 iperf iputils-ping libgmp-dev libbsd-dev libssl-dev libboost-all-dev iproute2 iperf iputils-ping wget cargo cmake
 WORKDIR /root
+COPY . duoram
 RUN git clone https://github.com/encryptogroup/OTExtension.git
 RUN cd OTExtension/ && mkdir build && cd build && cmake .. && make
-RUN git clone git://git-crysp.uwaterloo.ca/duoram  
-RUN git clone https://git-crysp.uwaterloo.ca/iang/spiral-spir  
-RUN cd duoram/usenix-artifact/preprocessing && make
-RUN cd duoram/usenix-artifact/duoram-online && make 
-RUN cd duoram/usenix-artifact/2p-preprocessing && make
-RUN cd duoram/2P-duoram/cxx && make test0 test1 spir_test0 spir_test1
- 
+RUN cd duoram/preprocessing && make
+RUN cd duoram/duoram-online && make
+RUN cd duoram/2p-preprocessing && make
+RUN cd duoram/cpir-read/cxx && make test0 test1 spir_test0 spir_test1

+ 2 - 1
Docker/build-docker.sh

@@ -1,3 +1,4 @@
 #!/bin/bash
 
-docker build $* -t duoram . 
+cd ..
+docker build $* -t duoram -f Docker/Dockerfile .