@@ -21,10 +21,13 @@ spec:
21
21
source :
22
22
type : Dockerfile
23
23
dockerfile : |
24
- FROM registry.access.redhat.com/ubi8/ubi AS builder
24
+ ARG BUILDER=registry.access.redhat.com/ubi9:latest
25
+ ARG BASE=registry.access.redhat.com/ubi9-minimal:latest
26
+ ARG LINUX_SGX_VERSION=2.22
27
+ FROM ${BUILDER} AS builder
25
28
26
- ARG SGX_SDK=sgx_linux_x64_sdk_2.19 .100.3.bin
27
- ARG LINUX_SGX_VERSION=2.19
29
+ ARG SGX_SDK=sgx_linux_x64_sdk_2.22 .100.3.bin
30
+ ARG LINUX_SGX_VERSION
28
31
29
32
RUN dnf -y update && \
30
33
dnf -y install \
@@ -37,17 +40,16 @@ spec:
37
40
38
41
# SGX SDK installed in /opt/intel directory
39
42
WORKDIR /opt/intel
40
- RUN wget https://download.01.org/intel-sgx/sgx-linux/$LINUX_SGX_VERSION/distro/rhel8.6 -server/$SGX_SDK \
43
+ RUN wget https://download.01.org/intel-sgx/sgx-linux/$LINUX_SGX_VERSION/distro/rhel9.2 -server/$SGX_SDK \
41
44
&& chmod +x $SGX_SDK \
42
45
&& echo "yes" | ./$SGX_SDK \
43
46
&& rm $SGX_SDK
44
47
45
48
RUN cd sgxsdk/SampleCode/SampleEnclave \
46
49
&& . /opt/intel/sgxsdk/environment \
47
50
&& make
48
-
49
- FROM registry.access.redhat.com/ubi8-minimal:latest
50
-
51
+ FROM ${BASE}
52
+ ARG LINUX_SGX_VERSION
51
53
RUN microdnf -y update && \
52
54
microdnf -y install \
53
55
wget \
57
59
58
60
# Download SGX PSW and install SGX runtime components to create SGX enclave
59
61
WORKDIR /opt/intel
60
- RUN wget https://download.01.org/intel-sgx/latest/linux-latest/ distro/rhel8.6 -server/sgx_rpm_local_repo.tgz \
62
+ RUN wget https://download.01.org/intel-sgx/sgx-linux/$LINUX_SGX_VERSION/ distro/rhel9.2 -server/sgx_rpm_local_repo.tgz \
61
63
&& sha256sum sgx_rpm_local_repo.tgz \
62
64
&& tar xvf sgx_rpm_local_repo.tgz \
63
65
&& rm -rf sgx_rpm_local_repo.tgz
@@ -78,10 +80,14 @@ spec:
78
80
noCache : true
79
81
dockerStrategy :
80
82
buildArgs :
83
+ - name : " BUILDER"
84
+ value : " registry.access.redhat.com/ubi9:9.2"
85
+ - name : " BASE"
86
+ value : " registry.access.redhat.com/ubi9-minimal:9.2"
81
87
- name : " SGX_SDK"
82
- value : " sgx_linux_x64_sdk_2.19 .100.3.bin"
88
+ value : " sgx_linux_x64_sdk_2.22 .100.3.bin"
83
89
- name : " LINUX_SGX_VERSION"
84
- value : " 2.19 "
90
+ value : " 2.22 "
85
91
output :
86
92
to :
87
93
kind : ImageStreamTag
0 commit comments