Skip to content

Commit 932d6c9

Browse files
tkatilamythi
andcommitted
e2e: sgx: fetch SGX DC attestation primitives as tar.gz
Hopefully fixes issues with random failures with e2e-sgx. Co-authored-by: Mikko Ylinen <mikko.ylinen@intel.com> Signed-off-by: Tuomas Katila <tuomas.katila@intel.com>
1 parent 6fb95e6 commit 932d6c9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

demo/sgx-sdk-demo/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,17 @@ RUN wget ${SGX_SDK_URL} \
4444
&& echo "yes" | ./$SGX_SDK_INSTALLER \
4545
&& rm $SGX_SDK_INSTALLER
4646

47-
RUN git clone -b $DCAP_VERSION https://github.com/intel/SGXDataCenterAttestationPrimitives.git
48-
4947
RUN cd sgxsdk/SampleCode/SampleEnclave \
5048
&& . /opt/intel/sgxsdk/environment \
5149
&& make \
5250
&& cd -
5351

52+
ARG DCAP_TARBALL_SHA256="ed96f583581be108f9370d7e97577664a704914a98f27a7e117a650651c13e56"
53+
54+
RUN wget -q https://github.com/intel/SGXDataCenterAttestationPrimitives/archive/$DCAP_VERSION.tar.gz && \
55+
echo "$DCAP_TARBALL_SHA256 $DCAP_VERSION.tar.gz" | sha256sum -c - && \
56+
tar xzf $DCAP_VERSION.tar.gz && mv SGXDataCenterAttestationPrimitives* SGXDataCenterAttestationPrimitives
57+
5458
RUN cd SGXDataCenterAttestationPrimitives/SampleCode/QuoteGenerationSample \
5559
&& . /opt/intel/sgxsdk/environment \
5660
&& make \

0 commit comments

Comments
 (0)