File tree Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Expand file tree Collapse file tree 2 files changed +62
-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-dgpu-hwinfo
8
+ namespace : intel-dgpu
9
+ spec : {}
10
+ ---
11
+ apiVersion : build.openshift.io/v1
12
+ kind : BuildConfig
13
+ metadata :
14
+ name : intel-dgpu-hwinfo
15
+ namespace : intel-dgpu
16
+ spec :
17
+ triggers :
18
+ - type : " ConfigChange"
19
+ - type : " ImageChange"
20
+ runPolicy : " Serial"
21
+ source :
22
+ type : Dockerfile
23
+ dockerfile : |
24
+ ARG BUILDER=registry.access.redhat.com/ubi9-minimal:latest
25
+ FROM ${BUILDER}
26
+ RUN microdnf -y update && \
27
+ rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
28
+ microdnf install -y hwinfo
29
+ ENTRYPOINT ["hwinfo"]
30
+ strategy :
31
+ type : Docker
32
+ noCache : true
33
+ dockerStrategy :
34
+ buildArgs :
35
+ - name : " BUILDER"
36
+ value : " registry.access.redhat.com/ubi9-minimal:latest"
37
+ output :
38
+ to :
39
+ kind : ImageStreamTag
40
+ name : intel-dgpu-hwinfo: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-dgpu-hwinfo
8
+ namespace : intel-dgpu
9
+ spec :
10
+ template :
11
+ metadata :
12
+ spec :
13
+ restartPolicy : Never
14
+ containers :
15
+ - name : hwinfo-pod
16
+ image : image-registry.openshift-image-registry.svc:5000/intel-dgpu/intel-dgpu-hwinfo:latest
17
+ command : ["hwinfo"]
18
+ args : ["--display"]
19
+ resources :
20
+ limits :
21
+ gpu.intel.com/i915 : 1
22
+ imagePullPolicy : IfNotPresent
You can’t perform that action at this time.
0 commit comments