Dockerfile 691 B

123456789101112131415161718192021
  1. FROM sgx
  2. RUN apt update
  3. RUN apt install -y gawk python-pip
  4. RUN pip install protobuf
  5. RUN pip install pycrypto
  6. WORKDIR /root
  7. RUN git clone https://git-crysp.uwaterloo.ca/miti/graphene.git
  8. WORKDIR graphene
  9. RUN git checkout mitigator_patch
  10. RUN git checkout 2263b701
  11. RUN git submodule init
  12. RUN git submodule update
  13. RUN cd Pal/src/host/Linux-SGX/sgx-driver && git checkout 30d4b940
  14. WORKDIR /root/graphene
  15. COPY isgx_version.h Pal/src/host/Linux-SGX/sgx-driver/
  16. RUN mkdir Pal/src/host/Linux-SGX/sgx-driver/linux-sgx-driver
  17. COPY sgx_user.h Pal/src/host/Linux-SGX/sgx-driver/linux-sgx-driver/
  18. RUN openssl genrsa -3 -out Pal/src/host/Linux-SGX/signer/enclave-key.pem 3072
  19. RUN make SGX=1
  20. WORKDIR /root