Skip to content

Commit fb8d6fd

Browse files
committed
lock version number in "dnf install"
RHEL 9.0 ships haproxy-2.4.7, RHEL 9.1 will ship haproxy-2.4.17. It's possible future RHEL 9 versions will have further version rebases. Add a check to verify that microdnf has installed the version number that corresponds to the number in the "version" LABEL. With this change, we will fail the container image build instead of accidentally installing a newer version that does not match our LABEL.
1 parent 94a1526 commit fb8d6fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ FROM registry.redhat.io/ubi9/ubi-minimal:latest
22

33
RUN microdnf update -y
44

5-
RUN microdnf install -y haproxy
5+
# If you edit this version number, edit it here *and* the LABEL below:
6+
RUN microdnf install -y haproxy && rpm -q haproxy-2.4.17
67

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

0 commit comments

Comments
 (0)