File tree Expand file tree Collapse file tree 2 files changed +90
-0
lines changed Expand file tree Collapse file tree 2 files changed +90
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2023 Intel Corporation
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ apiVersion : image.openshift.io/v1
5
+ kind : ImageStream
6
+ metadata :
7
+ name : intel-qat-workload
8
+ namespace : intel-qat
9
+ spec : {}
10
+ ---
11
+ apiVersion : build.openshift.io/v1
12
+ kind : BuildConfig
13
+ metadata :
14
+ name : intel-qat-workload
15
+ namespace : intel-qat
16
+ spec :
17
+ triggers :
18
+ - type : " ConfigChange"
19
+ - type : " ImageChange"
20
+ runPolicy : " Serial"
21
+ source :
22
+ type : Dockerfile
23
+ dockerfile : |
24
+
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"]
50
+ strategy :
51
+ type : Docker
52
+ noCache : true
53
+ dockerStrategy :
54
+ buildArgs :
55
+ - name : " QATLIB_VERSION"
56
+ value : " 23.08.0"
57
+
58
+ output :
59
+ to :
60
+ kind : ImageStreamTag
61
+ name : intel-qat-workload:latest
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2023 Intel Corporation
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ apiVersion : batch/v1
5
+ kind : Job
6
+ metadata :
7
+ name : intel-qat-workload
8
+ namespace : intel-qat
9
+ spec :
10
+ template :
11
+ spec :
12
+ restartPolicy : Never
13
+ containers :
14
+ - name : intel-qat-job
15
+ image : image-registry.openshift-image-registry.svc:5000/intel-qat/intel-qat-workload:latest
16
+ imagePullPolicy : IfNotPresent
17
+ command : ["./cpa_sample_code"]
18
+ securityContext :
19
+ capabilities :
20
+ add :
21
+ [IPC_LOCK]
22
+ resources :
23
+ requests :
24
+ qat.intel.com/dc : ' 1'
25
+ qat.intel.com/cy : ' 1'
26
+ limits :
27
+ qat.intel.com/dc : ' 1'
28
+ qat.intel.com/cy : ' 1'
29
+ serviceAccount : intel-qat
You can’t perform that action at this time.
0 commit comments