From 3566824bd6be168bb0f32d4ae330e95cbd4d6100 Mon Sep 17 00:00:00 2001 From: Chin-Ya Huang Date: Mon, 28 Oct 2024 12:06:50 +0800 Subject: [PATCH] build: install latest grpc_health_probe longhorn/longhorn-9714 Signed-off-by: Chin-Ya Huang --- package/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package/Dockerfile b/package/Dockerfile index 0b59cab8d..dafde6737 100644 --- a/package/Dockerfile +++ b/package/Dockerfile @@ -9,7 +9,7 @@ RUN zypper -n addrepo --refresh https://download.opensuse.org/repositories/syste 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 cmake curl git gcc wget xsltproc docbook-xsl-stylesheets && \ +RUN zypper -n install cmake curl git gcc wget xsltproc docbook-xsl-stylesheets jq && \ rm -rf /var/cache/zypp/* # Build liblonghorn @@ -31,7 +31,8 @@ RUN cd /usr/src && \ make install # 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 FROM registry.suse.com/bci/bci-base:15.6 AS release