1- FROM ubuntu:20 .04 AS builder
1+ FROM ubuntu:22 .04 AS builder
22
33WORKDIR /root
44
@@ -23,10 +23,9 @@ RUN apt-get update && \
2323# SGX SDK is installed in /opt/intel directory.
2424WORKDIR /opt/intel
2525
26- ARG SGX_SDK_INSTALLER=sgx_linux_x64_sdk_2.17.101.1.bin
27- ARG DCAP_VERSION=DCAP_1.14
26+ ARG DCAP_VERSION=DCAP_1.15
2827
29- RUN echo "deb [arch=amd64 signed-by=/usr/share/keyrings/intel-sgx.gpg] https://download.01.org/intel-sgx/sgx_repo/ubuntu focal main" | \
28+ RUN echo "deb [arch=amd64 signed-by=/usr/share/keyrings/intel-sgx.gpg] https://download.01.org/intel-sgx/sgx_repo/ubuntu jammy main" | \
3029 tee -a /etc/apt/sources.list.d/intel-sgx.list \
3130 && wget -qO - https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | \
3231 gpg --dearmor --output /usr/share/keyrings/intel-sgx.gpg \
@@ -37,8 +36,10 @@ RUN echo "deb [arch=amd64 signed-by=/usr/share/keyrings/intel-sgx.gpg] https://d
3736 libsgx-quote-ex-dev
3837
3938# Install SGX SDK
40- RUN wget https://download.01.org/intel-sgx/sgx-linux/2.17.1/distro/ubuntu20.04-server/$SGX_SDK_INSTALLER \
41- && chmod +x $SGX_SDK_INSTALLER \
39+ ARG SGX_SDK_URL=https://download.01.org/intel-sgx/sgx-linux/2.18/distro/ubuntu22.04-server/sgx_linux_x64_sdk_2.18.100.3.bin
40+ RUN wget ${SGX_SDK_URL} \
41+ && export SGX_SDK_INSTALLER=$(basename $SGX_SDK_URL) \
42+ && chmod +x $SGX_SDK_INSTALLER \
4243 && echo "yes" | ./$SGX_SDK_INSTALLER \
4344 && rm $SGX_SDK_INSTALLER
4445
@@ -54,15 +55,15 @@ RUN cd SGXDataCenterAttestationPrimitives/SampleCode/QuoteGenerationSample \
5455 && make \
5556 && cd -
5657
57- FROM ubuntu:20 .04
58+ FROM ubuntu:22 .04
5859
5960RUN apt-get update && \
6061 apt-get install -y \
6162 wget \
6263 gnupg-agent
6364
6465# Add 01.org to apt for SGX packages and install SGX runtime components
65- RUN echo "deb [arch=amd64 signed-by=/usr/share/keyrings/intel-sgx.gpg] https://download.01.org/intel-sgx/sgx_repo/ubuntu focal main" | \
66+ RUN echo "deb [arch=amd64 signed-by=/usr/share/keyrings/intel-sgx.gpg] https://download.01.org/intel-sgx/sgx_repo/ubuntu jammy main" | \
6667 tee -a /etc/apt/sources.list.d/intel-sgx.list \
6768 && wget -qO - https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | \
6869 gpg --dearmor --output /usr/share/keyrings/intel-sgx.gpg \
0 commit comments