Skip to content

Commit 76a90c0

Browse files
authored
Merge pull request #38 from vbedida79/patch-190523-1
tests_l2: Update sgx l2 test
2 parents 9d8ed44 + a38ec53 commit 76a90c0

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

tests/l2/sgx/sgx_build.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ spec:
2323
dockerfile: |
2424
FROM registry.access.redhat.com/ubi8/ubi AS builder
2525
26-
ARG SGX_SDK=sgx_linux_x64_sdk_2.18.101.1.bin
27-
ARG LINUX_SGX_VERSION=2.18.1
26+
ARG SGX_SDK=sgx_linux_x64_sdk_2.19.100.3.bin
27+
ARG LINUX_SGX_VERSION=2.19
2828
2929
RUN dnf -y update && \
3030
dnf -y install \
@@ -42,7 +42,6 @@ spec:
4242
&& echo "yes" | ./$SGX_SDK \
4343
&& rm $SGX_SDK
4444
45-
WORKDIR /opt/intel
4645
RUN cd sgxsdk/SampleCode/SampleEnclave \
4746
&& . /opt/intel/sgxsdk/environment \
4847
&& make
@@ -56,21 +55,21 @@ spec:
5655
gzip && \
5756
microdnf clean all && rm -rf /var/cache/dnf
5857
59-
# Download SGX PSW and install SGX runtime components
58+
# Download SGX PSW and install SGX runtime components to create SGX enclave
6059
WORKDIR /opt/intel
6160
RUN wget https://download.01.org/intel-sgx/latest/linux-latest/distro/rhel8.6-server/sgx_rpm_local_repo.tgz \
6261
&& sha256sum sgx_rpm_local_repo.tgz \
6362
&& tar xvf sgx_rpm_local_repo.tgz \
6463
&& rm -rf sgx_rpm_local_repo.tgz
6564
66-
RUN cd /opt/intel/sgx_rpm_local_repo && rpm -i \
65+
RUN cd sgx_rpm_local_repo && rpm -i \
6766
libsgx-headers-$LINUX_SGX_VERSION* \
6867
libsgx-enclave-common-$LINUX_SGX_VERSION* \
6968
libsgx-urts-$LINUX_SGX_VERSION* && \
7069
rm -r /opt/intel/sgx_rpm_local_repo
7170
72-
COPY --from=builder /opt/intel/sgxsdk/SampleCode/SampleEnclave/app /opt/intel/app
73-
COPY --from=builder /opt/intel/sgxsdk/SampleCode/SampleEnclave/enclave.signed.so /opt/intel/enclave.signed.so
71+
COPY --from=builder /opt/intel/sgxsdk/SampleCode/SampleEnclave/app app
72+
COPY --from=builder /opt/intel/sgxsdk/SampleCode/SampleEnclave/enclave.signed.so enclave.signed.so
7473
7574
ENTRYPOINT /opt/intel/app
7675
@@ -80,9 +79,9 @@ spec:
8079
dockerStrategy:
8180
buildArgs:
8281
- name: "SGX_SDK"
83-
value: "sgx_linux_x64_sdk_2.18.101.1.bin"
82+
value: "sgx_linux_x64_sdk_2.19.100.3.bin"
8483
- name: "LINUX_SGX_VERSION"
85-
value: "2.18.1"
84+
value: "2.19"
8685
output:
8786
to:
8887
kind: ImageStreamTag

tests/l2/sgx/sgx_job.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ spec:
1313
containers:
1414
- name: intel-sgx-job
1515
image: image-registry.openshift-image-registry.svc:5000/intel-sgx/intel-sgx-workload:latest
16-
imagePullPolicy: IfNotPresent
16+
imagePullPolicy: Always
1717
workingDir: "/opt/intel/"
1818
command: ["/opt/intel/app"]
1919
resources:

0 commit comments

Comments
 (0)