Skip to content

Commit 0c052ff

Browse files
authored
Merge pull request #181 from vbedida79/patch-111223-1
tests_l2: Update qatlib workload to ubi9 rpm packages
2 parents b07b211 + df4df7d commit 0c052ff

File tree

3 files changed

+15
-30
lines changed

3 files changed

+15
-30
lines changed

tests/l2/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,12 @@ $ oc logs intel-dgpu-hwinfo-l4572
113113
```
114114

115115
### Verify Intel® QuickAssist Technology provisioning
116-
This workload runs [qatlib](https://github.com/intel/qatlib) sample tests. Refer to the [qatlib readme](https://github.com/intel/qatlib/blob/main/INSTALL) for more details.
116+
This workload runs [qatlib](https://github.com/intel/qatlib) sample tests using RedHat built and distributed Qatlib RPM packages from the codeready-builder-for-rhel-9-x86_64-rpms repo. Refer to the [qatlib readme](https://github.com/intel/qatlib/blob/main/INSTALL) for more details.
117117

118118
* Build the workload container image
119119

120+
Please replace the credentials in buildconfig yaml with your RedHat account login credentials.
121+
120122
```$ oc apply -f https://raw.githubusercontent.com/intel/intel-technology-enabling-for-openshift/main/tests/l2/qat/qatlib_build.yaml ```
121123

122124
* Create SCC intel-qat-scc for Intel QAT based workload, if this SCC is not created
@@ -138,7 +140,7 @@ This workload runs [qatlib](https://github.com/intel/qatlib) sample tests. Refer
138140
```
139141

140142

141-
* For all sample tests `./cpa_sample_code`
143+
* For all sample tests `cpa_sample_code`
142144

143145
```
144146
$ oc logs intel-qat-workload-c6g9v

tests/l2/qat/qatlib_build.yaml

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -22,38 +22,21 @@ spec:
2222
type: Dockerfile
2323
dockerfile: |
2424
25-
FROM registry.access.redhat.com/ubi8/ubi
26-
ARG QATLIB_VERSION
27-
28-
RUN dnf -y update && \
29-
dnf install -y gcc \
30-
make \
31-
automake \
32-
autoconf \
33-
libtool \
34-
http://mirror.centos.org/centos/8-stream/PowerTools/x86_64/os/Packages/nasm-2.15.03-3.el8.x86_64.rpm \
35-
openssl-devel \
36-
zlib-devel \
37-
git && \
38-
git clone -b $QATLIB_VERSION https://github.com/intel/qatlib
39-
40-
RUN cd /qatlib && \
41-
./autogen.sh && \
42-
./configure \
43-
--prefix=/usr \
44-
--enable-systemd=no && \
45-
make -j && \
46-
make install samples-install
47-
48-
WORKDIR /usr/bin
49-
ENTRYPOINT ["/usr/bin/cpa_sample_code"]
25+
ARG BUILDER=registry.access.redhat.com/ubi9:latest
26+
FROM ${BUILDER}
27+
RUN subscription-manager register --username=username --password=password && \
28+
subscription-manager attach --auto && \
29+
dnf repolist --disablerepo=* && \
30+
subscription-manager repos --enable codeready-builder-for-rhel-9-x86_64-rpms && \
31+
dnf -y update && \
32+
dnf install -y qatlib qatlib-tests
5033
strategy:
5134
type: Docker
5235
noCache: true
5336
dockerStrategy:
5437
buildArgs:
55-
- name: "QATLIB_VERSION"
56-
value: "23.08.0"
38+
- name: "BUILDER"
39+
value: "registry.access.redhat.com/ubi9:latest"
5740

5841
output:
5942
to:

tests/l2/qat/qatlib_job.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ spec:
1414
- name: intel-qat-job
1515
image: image-registry.openshift-image-registry.svc:5000/intel-qat/intel-qat-workload:latest
1616
imagePullPolicy: IfNotPresent
17-
command: ["./cpa_sample_code"]
17+
command: ["cpa_sample_code"]
1818
securityContext:
1919
capabilities:
2020
add:

0 commit comments

Comments
 (0)