From 932d6c9e23c92179e2a2c8e612b85d7fb60b2288 Mon Sep 17 00:00:00 2001 From: Tuomas Katila Date: Wed, 20 Dec 2023 14:15:43 +0200 Subject: [PATCH] e2e: sgx: fetch SGX DC attestation primitives as tar.gz Hopefully fixes issues with random failures with e2e-sgx. Co-authored-by: Mikko Ylinen Signed-off-by: Tuomas Katila --- demo/sgx-sdk-demo/Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/demo/sgx-sdk-demo/Dockerfile b/demo/sgx-sdk-demo/Dockerfile index 66a747b11..c7cd96447 100644 --- a/demo/sgx-sdk-demo/Dockerfile +++ b/demo/sgx-sdk-demo/Dockerfile @@ -44,13 +44,17 @@ RUN wget ${SGX_SDK_URL} \ && echo "yes" | ./$SGX_SDK_INSTALLER \ && rm $SGX_SDK_INSTALLER -RUN git clone -b $DCAP_VERSION https://github.com/intel/SGXDataCenterAttestationPrimitives.git - RUN cd sgxsdk/SampleCode/SampleEnclave \ && . /opt/intel/sgxsdk/environment \ && make \ && cd - +ARG DCAP_TARBALL_SHA256="ed96f583581be108f9370d7e97577664a704914a98f27a7e117a650651c13e56" + +RUN wget -q https://github.com/intel/SGXDataCenterAttestationPrimitives/archive/$DCAP_VERSION.tar.gz && \ + echo "$DCAP_TARBALL_SHA256 $DCAP_VERSION.tar.gz" | sha256sum -c - && \ + tar xzf $DCAP_VERSION.tar.gz && mv SGXDataCenterAttestationPrimitives* SGXDataCenterAttestationPrimitives + RUN cd SGXDataCenterAttestationPrimitives/SampleCode/QuoteGenerationSample \ && . /opt/intel/sgxsdk/environment \ && make \