Skip to content

Commit 5eb5856

Browse files
Fix opencl-header installation
The code as is installs opencl-headers from rhel8 and immediately does a dnf -y update which immediately overwrites it with rhel 9's version which causes compilation failures. The fix is to get rid of the dnf -y update because the image was already updated back at the first use of dnf.
1 parent 0fc47c5 commit 5eb5856

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Dockerfile.konflux

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ ARG VERBOSE_LOGS=OFF
110110
ARG LTO_ENABLE=OFF
111111

112112
# hadolint ignore=DL3041
113-
RUN dnf install -y https://vault.centos.org/centos/8-stream/PowerTools/x86_64/os/Packages/opencl-headers-2.2-1.20180306gite986688.el8.noarch.rpm && \
114-
dnf update -d6 -y && dnf install -d6 -y \
113+
RUN dnf install -d6 -y \
114+
https://vault.centos.org/centos/8-stream/PowerTools/x86_64/os/Packages/opencl-headers-2.2-1.20180306gite986688.el8.noarch.rpm \
115115
gdb \
116116
java-11-openjdk-devel \
117117
tzdata-java \

Dockerfile.redhat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ ARG VERBOSE_LOGS=OFF
110110
ARG LTO_ENABLE=OFF
111111

112112
# hadolint ignore=DL3041
113-
RUN dnf install -y https://vault.centos.org/centos/8-stream/PowerTools/x86_64/os/Packages/opencl-headers-2.2-1.20180306gite986688.el8.noarch.rpm && \
114-
dnf update -d6 -y && dnf install -d6 -y \
113+
RUN dnf install -d6 -y \
114+
https://vault.centos.org/centos/8-stream/PowerTools/x86_64/os/Packages/opencl-headers-2.2-1.20180306gite986688.el8.noarch.rpm \
115115
gdb \
116116
java-11-openjdk-devel \
117117
tzdata-java \

0 commit comments

Comments
 (0)