From 09e21e8fe56f7b31d848023a9c592bb417419d96 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Thu, 17 Feb 2022 17:45:25 +0000 Subject: [PATCH] Dockerfile: Install ethr binary only on amd64 Signed-off-by: Rob Bradford --- resources/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/Dockerfile b/resources/Dockerfile index aad4c9fb1..e65f1c2dc 100644 --- a/resources/Dockerfile +++ b/resources/Dockerfile @@ -122,7 +122,8 @@ RUN if [ "$TARGETARCH" = "amd64" ]; then \ && cd .. && rm -rf spdk; fi # install ethr tool for performance tests -RUN wget https://github.com/microsoft/ethr/releases/latest/download/ethr_linux.zip \ +RUN if [ "$TARGETARCH" = "amd64" ]; then \ + wget https://github.com/microsoft/ethr/releases/latest/download/ethr_linux.zip \ && unzip ethr_linux.zip \ && cp ethr /usr/local/bin \ - && rm ethr_linux.zip + && rm ethr_linux.zip; fi