Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: make mrsigner/mrenclave available #134

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tools/packaging/build/agent-enclave-bundle/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ RUN wget ${SGX_SDK_URL} \
&& echo "yes" | ./$SGX_SDK_INSTALLER \
&& rm $SGX_SDK_INSTALLER \
&& cp /opt/sgxsdk/lib64/libsgx_uae_service_sim.so /lib/x86_64-linux-gnu/ \
&& cp /opt/sgxsdk/bin/x64/sgx_sign /usr/bin/ \
&& /opt/sgxsdk/uninstall.sh

RUN git clone https://github.com/inclavare-containers/rats-tls.git && \
Expand Down Expand Up @@ -84,6 +85,7 @@ RUN export PATH="$PATH:/opt/occlum/build/bin" && \
# TODO: add new build stage and copy occlum_instance.tar.gz to it
WORKDIR /run/rune
RUN tar xzf /run/enclave-agent/occlum_instance/occlum_instance.tar.gz && \
sgx_sign dump -dumpfile /run/enclave.txt -cssfile /run/sigstruct.bin -enclave occlum_instance/build/lib/libocclum-libos.signed.so && \
rm -rf /run/enclave-agent

RUN rm -rf $HOME/.cargo $HOME/.rustup /enclave-cc && sed -e '/cargo/d' -i /root/.profile && sed -e '/cargo/d' -i /root/.bashrc
Expand Down
2 changes: 2 additions & 0 deletions tools/packaging/build/boot-instance-bundle/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ RUN wget ${SGX_SDK_URL} \
&& echo "yes" | ./$SGX_SDK_INSTALLER \
&& rm $SGX_SDK_INSTALLER \
&& cp /opt/sgxsdk/lib64/libsgx_uae_service_sim.so /lib/x86_64-linux-gnu/ \
&& cp /opt/sgxsdk/bin/x64/sgx_sign /usr/bin/ \
&& /opt/sgxsdk/uninstall.sh

WORKDIR /run/occlum
Expand Down Expand Up @@ -72,6 +73,7 @@ RUN export PATH="$PATH:/opt/occlum/build/bin" && \
# "working directory".
WORKDIR /run/rune
RUN tar xzf /run/occlum/boot_instance/boot_instance.tar.gz && \
sgx_sign dump -dumpfile /run/enclave.txt -cssfile /run/sigstruct.bin -enclave occlum_instance/build/lib/libocclum-libos.signed.so && \
rm -rf /run/occlum

RUN apt-get purge -y wget gnupg make tzdata jq occlum occlum-toolchains-glibc binutils libfuse2 libfuse3-3 rsync && apt-get autoremove -y
Expand Down