forked from openshift/linuxptp-daemon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.art
24 lines (18 loc) · 861 Bytes
/
Dockerfile.art
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS builder
WORKDIR /go/src/github.com/josephdrichard/linuxptp-daemon
COPY . .
RUN make clean && make
FROM registry.ci.openshift.org/ocp/4.18:base-rhel9
RUN yum -y update && \
yum -y update glibc && \
yum --setopt=skip_missing_names_on_install=False -y install linuxptp ethtool hwdata && \
yum clean all
RUN yum install -y gpsd-minimal
RUN yum install -y gpsd-minimal-clients
# Create symlinks for executables to match references
RUN ln -s /usr/bin/gpspipe /usr/local/bin/gpspipe
RUN ln -s /usr/sbin/gpsd /usr/local/sbin/gpsd
RUN ln -s /usr/bin/ubxtool /usr/local/bin/ubxtool
COPY --from=builder /go/src/github.com/josephdrichard/linuxptp-daemon/bin/ptp /usr/local/bin/
COPY ./extra/leap-seconds.list /usr/share/zoneinfo/leap-seconds.list
CMD ["/usr/local/bin/ptp"]