Dockerfile 1.1 KB

1234567891011121314151617181920212223242526
  1. FROM ubuntu:16.04
  2. RUN apt update && apt install
  3. RUN apt -y install git cmake wget gcc-4.8 g++-4.8 make vim python psmisc build-essential
  4. RUN apt -y install m4 libgmp3-dev libmpfr-dev libmpfr-doc libmpfr4 libmpfr4-dbg
  5. # Setup gcc-4.8 and g++-4.8 for use
  6. RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 100
  7. RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 100
  8. RUN update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30
  9. RUN update-alternatives --set cc /usr/bin/gcc
  10. RUN update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30
  11. RUN update-alternatives --set c++ /usr/bin/g++
  12. RUN update-alternatives --config gcc
  13. RUN update-alternatives --config g++
  14. RUN export CC=/usr/bin/gcc-4.8
  15. RUN export CXX=/usr/bin/g++-4.8
  16. COPY XPIR.tar.gz /pir/
  17. WORKDIR /pir/
  18. RUN tar -xf XPIR.tar.gz
  19. RUN git clone https://git-crysp.uwaterloo.ca/piros/XPIR.git
  20. RUN cd XPIR && mkdir _build && ./helper_script.sh
  21. #RUN cd XPIR/_build && cmake .. -DCMAKE_BUILD_TYPE=Release && make && make check
  22. RUN cd XPIR/_build && cmake .. -DCMAKE_BUILD_TYPE=Release && make