Dockerfile 946 B

123456789101112131415161718192021222324252627
  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/.ssh
  7. #Temp - TODO: Make the git repo public and remove these commands and retest.
  8. COPY gitcrysp-docker-deploy-key.id_rsa ./id_rsa
  9. COPY gitcrysp-docker-deploy-key.id_rsa.pub ./id_rsa.pub
  10. RUN ssh-keyscan git-crysp.uwaterloo.ca > ./known_hosts
  11. WORKDIR /root
  12. RUN git clone gogs@git-crysp.uwaterloo.ca:miti/graphene.git
  13. WORKDIR graphene
  14. RUN git checkout mitigator_patch
  15. RUN git checkout 2263b701
  16. RUN git submodule init
  17. RUN git submodule update
  18. RUN cd Pal/src/host/Linux-SGX/sgx-driver && git checkout 30d4b940
  19. WORKDIR /root/graphene
  20. COPY isgx_version.h Pal/src/host/Linux-SGX/sgx-driver/
  21. RUN mkdir Pal/src/host/Linux-SGX/sgx-driver/linux-sgx-driver
  22. COPY sgx_user.h Pal/src/host/Linux-SGX/sgx-driver/linux-sgx-driver/
  23. RUN openssl genrsa -3 -out Pal/src/host/Linux-SGX/signer/enclave-key.pem 3072
  24. RUN make SGX=1
  25. WORKDIR /root