Skip to content

Commit

Permalink
build: install latest grpc_health_probe
Browse files Browse the repository at this point in the history
longhorn/longhorn-9714

Signed-off-by: Chin-Ya Huang <[email protected]>
(cherry picked from commit f40c2ca)
  • Loading branch information
c3y1huang authored and derekbit committed Oct 28, 2024
1 parent 0a6323f commit 1e3abe2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN zypper -n ref && \
RUN zypper -n addrepo --refresh https://download.opensuse.org/repositories/network:utilities/SLE_15_SP5/network:utilities.repo && \
zypper --gpg-auto-import-keys ref

RUN zypper -n install wget
RUN zypper -n install wget jq

ENV GOLANG_ARCH_amd64=amd64 GOLANG_ARCH_arm64=arm64 GOLANG_ARCH_s390x=s390x GOLANG_ARCH=GOLANG_ARCH_${ARCH} \
GOPATH=/go PATH=/go/bin:/usr/local/go/bin:${PATH} SHELL=/bin/bash
Expand All @@ -26,7 +26,8 @@ RUN git clone https://github.com/longhorn/go-spdk-helper.git ${GO_SPDK_HELPER_DI
rm -rf ${GO_SPDK_HELPER_DIR}

# Install grpc_health_probe
RUN wget https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/v0.4.28/grpc_health_probe-linux-${ARCH} -O /usr/local/bin/grpc_health_probe && \
RUN GRPC_HEALTH_PROBE_DOWNLOAD_URL=$(wget -qO- https://api.github.com/repos/grpc-ecosystem/grpc-health-probe/releases/latest | jq -r '.assets[] | select(.name | test("linux.*'"${ARCH}"'"; "i")) | .browser_download_url') && \
wget ${GRPC_HEALTH_PROBE_DOWNLOAD_URL} -O /usr/local/bin/grpc_health_probe && \
chmod +x /usr/local/bin/grpc_health_probe


Expand Down

0 comments on commit 1e3abe2

Please sign in to comment.