1
- FROM ubuntu:20 .04 AS builder
1
+ FROM ubuntu:22 .04 AS builder
2
2
3
3
WORKDIR /root
4
4
@@ -23,10 +23,9 @@ RUN apt-get update && \
23
23
# SGX SDK is installed in /opt/intel directory.
24
24
WORKDIR /opt/intel
25
25
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
28
27
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" | \
30
29
tee -a /etc/apt/sources.list.d/intel-sgx.list \
31
30
&& wget -qO - https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | \
32
31
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
37
36
libsgx-quote-ex-dev
38
37
39
38
# 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 \
42
43
&& echo "yes" | ./$SGX_SDK_INSTALLER \
43
44
&& rm $SGX_SDK_INSTALLER
44
45
@@ -54,15 +55,15 @@ RUN cd SGXDataCenterAttestationPrimitives/SampleCode/QuoteGenerationSample \
54
55
&& make \
55
56
&& cd -
56
57
57
- FROM ubuntu:20 .04
58
+ FROM ubuntu:22 .04
58
59
59
60
RUN apt-get update && \
60
61
apt-get install -y \
61
62
wget \
62
63
gnupg-agent
63
64
64
65
# 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" | \
66
67
tee -a /etc/apt/sources.list.d/intel-sgx.list \
67
68
&& wget -qO - https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | \
68
69
gpg --dearmor --output /usr/share/keyrings/intel-sgx.gpg \
0 commit comments