From 5b251356daa7405d62d42e9fd4a3c7d392567c65 Mon Sep 17 00:00:00 2001 From: Brandon Palm Date: Mon, 2 Dec 2024 11:21:36 -0600 Subject: [PATCH] Revert "Revert "Add grpcurl to probe image"" --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index f3e2a9e..cec8c77 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,6 +25,7 @@ RUN \ dnf update --assumeyes --disableplugin=subscription-manager \ && dnf install --assumeyes --disableplugin=subscription-manager \ ethtool \ + golang \ iproute \ iptables \ iputils \ @@ -38,5 +39,10 @@ RUN \ && dnf clean all --assumeyes --disableplugin=subscription-manager \ && rm -fr /var/cache/yum \ && mkdir /root/podman +# Set the GOPATH environment variable +ENV GOPATH=/go +# Add the Go binary directory to the PATH +ENV PATH=$GOPATH/bin:/usr/local/go/bin:$PATH +RUN go install github.com/fullstorydev/grpcurl/cmd/grpcurl@v1.8.5 COPY --from=podman-builder /podman/bin/podman /root/podman/ VOLUME ["/host"]