Skip to content

Commit bffe72c

Browse files
committedNov 28, 2022
demo: move SGX images to Ubuntu 22.04
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
1 parent 2753ba0 commit bffe72c

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed
 

‎demo/sgx-aesmd-demo/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# This Dockerfile is currently provided as a reference to build aesmd with ECDSA attestation
22
# but is not published along with the device plugin container images.
3-
FROM ubuntu:20.04
3+
FROM ubuntu:22.04
44

55
RUN apt update && apt install -y curl gnupg-agent \
6-
&& echo "deb [arch=amd64 signed-by=/usr/share/keyrings/intel-sgx.gpg] https://download.01.org/intel-sgx/sgx_repo/ubuntu focal main" | \
6+
&& echo "deb [arch=amd64 signed-by=/usr/share/keyrings/intel-sgx.gpg] https://download.01.org/intel-sgx/sgx_repo/ubuntu jammy main" | \
77
tee -a /etc/apt/sources.list.d/intel-sgx.list \
88
&& curl -s https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | \
99
gpg --dearmor --output /usr/share/keyrings/intel-sgx.gpg \

‎demo/sgx-sdk-demo/Dockerfile

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:20.04 AS builder
1+
FROM ubuntu:22.04 AS builder
22

33
WORKDIR /root
44

@@ -23,10 +23,9 @@ RUN apt-get update && \
2323
# SGX SDK is installed in /opt/intel directory.
2424
WORKDIR /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

5960
RUN 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

Comments
 (0)
Please sign in to comment.