Skip to content

Commit 2267e20

Browse files
committed
Update Dockerfile to work on CentOS/RHEL 10
1 parent d27b803 commit 2267e20

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

addons/redhat/Dockerfile.ocp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ RUN yum -y update && yum -y update glibc && yum --setopt=skip_missing_names_on_i
1616
iproute \
1717
procps-ng \
1818
chrony \
19-
gpsd-minimal \
20-
gpsd-minimal-clients \
19+
# gpsd-minimal and gpsd-minimal-clients were renamed to gpsd and gpsd-clients in RHEL 10
20+
# try the old names first, fall back to new names
21+
&& (yum -y install gpsd-minimal gpsd-minimal-clients || yum -y install gpsd gpsd-clients) \
2122
&& yum clean all
2223

2324
# Create symlinks for executables to match references

0 commit comments

Comments
 (0)