Skip to content

Commit c8470d4

Browse files
committed
Only install qatengine package in x86_64 builds
This package is Intel specific so it's available only for x86_64 architectures. The idea here is to conditionally include this package at build time depending on the architecture. Resolves: rhbz#2308344 Signed-off-by: Guillaume Abrioux <[email protected]>
1 parent defba48 commit c8470d4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ FROM registry.redhat.io/ubi9/ubi-minimal:latest
33
RUN microdnf update -y
44

55
# If you edit this version number, edit it here *and* the LABEL below:
6-
RUN microdnf install -y qatengine haproxy && rpm -q haproxy-2.4.22
6+
RUN microdnf install -y haproxy && rpm -q haproxy-2.4.22
7+
8+
# Only install qatengine package when building on x86_64 arch.
9+
RUN if [ $(uname --hardware-platform) == "x86_64" ]; then microdnf install -y qatengine; fi
710

811
LABEL maintainer="Guillaume Abrioux <[email protected]>"
912
LABEL com.redhat.component="rhceph-haproxy-container"

0 commit comments

Comments
 (0)