Skip to content

Commit

Permalink
Dockerfile: Copy ovnkube-trace file for RHEL8 platform
Browse files Browse the repository at this point in the history
The ovnkube-trace binary file built for RHEL9 doesn't work anymore on
RHEL8 system due to different shared library dependencies between the
two OS versions. So this commit copies ovnkube-trace file built for
RHEL8 into /usr/lib/rhel8 directory so that user can download and
run it on RHEL-8 platforms.

Signed-off-by: Periyasamy Palanisamy <pepalani@redhat.com>
  • Loading branch information
pperiyasamy authored and openshift-cherrypick-robot committed Sep 26, 2023
1 parent 757426b commit 5f9cc0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Expand Up @@ -63,6 +63,9 @@ RUN mkdir -p /usr/libexec/cni/rhel9
COPY --from=builder /go/src/github.com/openshift/ovn-kubernetes/go-controller/_output/go/bin/ovn-k8s-cni-overlay /usr/libexec/cni/rhel9/
RUN mkdir -p /usr/libexec/cni/rhel8
COPY --from=rhel8 /go/src/github.com/openshift/ovn-kubernetes/go-controller/_output/go/bin/ovn-k8s-cni-overlay /usr/libexec/cni/rhel8/
# Copy RHEL-8 ovnkube-trace file into /usr/lib/rhel8 directory so that user can download and run it on RHEL-8 platform.
RUN mkdir -p /usr/lib/rhel8
COPY --from=rhel8 /go/src/github.com/openshift/ovn-kubernetes/go-controller/_output/go/bin/ovnkube-trace /usr/lib/rhel8/

RUN stat /usr/bin/oc

Expand Down

0 comments on commit 5f9cc0a

Please sign in to comment.