Skip to content

Commit ffb59f5

Browse files
authored
Merge pull request #1636 from tkatila/e2e-sgx-use-targz
e2e: sgx: fetch SGX DC attestation primitives as tar.gz
2 parents 5422895 + 932d6c9 commit ffb59f5

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)