Skip to content

Commit 2d245a2

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

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

addons/redhat/Dockerfile.ocp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ WORKDIR /go/src/github.com/k8snetworkplumbingwg/linuxptp-daemon
44
COPY . .
55
RUN make clean && make
66

7-
FROM registry.ci.openshift.org/ocp/4.22:base-rhel9
7+
# FROM registry.ci.openshift.org/ocp/4.22:base-rhel9
8+
FROM quay.io/centos/centos:stream10
89

9-
RUN yum -y update && yum -y update glibc && yum --setopt=skip_missing_names_on_install=False -y \
10+
RUN if yum install -y gpsd-minimal gpsd-minimal-clients >/dev/null 2>&1; then GPSD_PKGS="gpsd-minimal gpsd-minimal-clients"; else GPSD_PKGS="gpsd"; fi && \
11+
yum -y update && yum -y update glibc && yum --setopt=skip_missing_names_on_install=False -y \
1012
install \
1113
pciutils \
1214
linuxptp \
@@ -16,8 +18,7 @@ RUN yum -y update && yum -y update glibc && yum --setopt=skip_missing_names_on_i
1618
iproute \
1719
procps-ng \
1820
chrony \
19-
gpsd-minimal \
20-
gpsd-minimal-clients \
21+
$GPSD_PKGS \
2122
&& yum clean all
2223

2324
# Create symlinks for executables to match references

0 commit comments

Comments
 (0)