Skip to content

Commit e065e01

Browse files
authored
Merge pull request #161 from vbedida79/patch-201123-1
tests_l2: updated sgx build to ubi9
2 parents 5abe590 + 195e7c9 commit e065e01

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

tests/l2/sgx/sgx_build.yaml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,13 @@ spec:
2121
source:
2222
type: Dockerfile
2323
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
2528
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
2831
2932
RUN dnf -y update && \
3033
dnf -y install \
@@ -37,17 +40,16 @@ spec:
3740
3841
# SGX SDK installed in /opt/intel directory
3942
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 \
4144
&& chmod +x $SGX_SDK \
4245
&& echo "yes" | ./$SGX_SDK \
4346
&& rm $SGX_SDK
4447
4548
RUN cd sgxsdk/SampleCode/SampleEnclave \
4649
&& . /opt/intel/sgxsdk/environment \
4750
&& make
48-
49-
FROM registry.access.redhat.com/ubi8-minimal:latest
50-
51+
FROM ${BASE}
52+
ARG LINUX_SGX_VERSION
5153
RUN microdnf -y update && \
5254
microdnf -y install \
5355
wget \
@@ -57,7 +59,7 @@ spec:
5759
5860
# Download SGX PSW and install SGX runtime components to create SGX enclave
5961
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 \
6163
&& sha256sum sgx_rpm_local_repo.tgz \
6264
&& tar xvf sgx_rpm_local_repo.tgz \
6365
&& rm -rf sgx_rpm_local_repo.tgz
@@ -78,10 +80,14 @@ spec:
7880
noCache: true
7981
dockerStrategy:
8082
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"
8187
- 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"
8389
- name: "LINUX_SGX_VERSION"
84-
value: "2.19"
90+
value: "2.22"
8591
output:
8692
to:
8793
kind: ImageStreamTag

0 commit comments

Comments
 (0)