From b43a11381c473ae68cdba1f9c539421988fa50d1 Mon Sep 17 00:00:00 2001 From: RayPlante Date: Thu, 27 Jun 2024 15:30:03 -0400 Subject: [PATCH] docker/jq: macs give aarch64 as machine within container --- docker/jq/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/jq/Dockerfile b/docker/jq/Dockerfile index 686eb4d..45a4ad3 100644 --- a/docker/jq/Dockerfile +++ b/docker/jq/Dockerfile @@ -8,14 +8,14 @@ WORKDIR /root # Download a jq binary and do a checksum check on it COPY jq-linux-amd64.sha256 jq-linux-arm64.sha256 ./ RUN arch=$(uname -m) && \ - { [ "$arch" != "x86_64" ] || arch="amd64"; } && \ + { [ "$arch" != "x86_64" ] || arch="amd64"; [ "$arch" != "aarch64" ] || arch="arm64"; } && \ curl -L -o jq-linux-$arch \ https://github.com/stedolan/jq/releases/download/jq-1.7.1/jq-linux-$arch && \ sha256sum -c jq-linux-$arch.sha256 # install jq RUN arch=$(uname -m) && \ - { [ "$arch" != "x86_64" ] || arch="amd64"; } && \ + { [ "$arch" != "x86_64" ] || arch="amd64"; [ "$arch" != "aarch64" ] || arch="arm64"; } && \ chmod a+x jq-linux-$arch && cp jq-linux-$arch /usr/local/bin/jq CMD ["bash"]