Skip to content

Commit

Permalink
updates jq 1.6 => 1.7 with support for arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
shelane committed Sep 8, 2023
1 parent fe9c10a commit 10985a8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
9 changes: 6 additions & 3 deletions 8.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ ENV \
PLATFORMSH_CLI_VERSION=4.9.0 \
ACQUIA_CLI_VERSION=2.15.0 \
TERMINUS_VERSION=3.2.1 \
JQ_VERSION=1.6 \
JQ_VERSION=1.7 \
YQ_VERSION=4.35.1
RUN set -xe; \
# Composer 1.x
Expand All @@ -287,10 +287,13 @@ RUN set -xe; \
curl -fsSL "https://github.com/acquia/cli/releases/download/${ACQUIA_CLI_VERSION}/acli.phar" -o /usr/local/bin/acli; \
# Pantheon Terminus
curl -fsSL "https://github.com/pantheon-systems/terminus/releases/download/${TERMINUS_VERSION}/terminus.phar" -o /usr/local/bin/terminus; \
# jq (no arm64)
# jq (separate builds for amd64 and arm64)
if [ "${TARGETARCH}" = "amd64" ]; then \
curl -fsSL "https://github.com/stedolan/jq/releases/download/jq-${JQ_VERSION}/jq-linux64" -o /usr/local/bin/jq; \
curl -fsSL "https://github.com/jqlang/jq/releases/download/jq-${JQ_VERSION}/jq-linux-amd64" -o /usr/local/bin/jq; \
chmod +x /usr/local/bin/jq; \
elif [ "${TARGETARCH}" = "arm64" ]; then \
curl -fsSL "https://github.com/jqlang/jq/releases/download/jq-${JQ_VERSION}/jq-linux-arm64" -o /usr/local/bin/jq; \
chmod +x /usr/local/bin/jq; \
fi; \
# yq
curl -fsSL "https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_linux_${TARGETARCH}" -o /usr/local/bin/yq; \
Expand Down
7 changes: 5 additions & 2 deletions 8.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ ENV \
PLATFORMSH_CLI_VERSION=4.9.0 \
ACQUIA_CLI_VERSION=2.15.0 \
TERMINUS_VERSION=3.2.1 \
JQ_VERSION=1.6 \
JQ_VERSION=1.7 \
YQ_VERSION=4.35.1
RUN set -xe; \
# Composer 1.x
Expand All @@ -289,8 +289,11 @@ RUN set -xe; \
curl -fsSL "https://github.com/pantheon-systems/terminus/releases/download/${TERMINUS_VERSION}/terminus.phar" -o /usr/local/bin/terminus; \
# jq (no arm64)
if [ "${TARGETARCH}" = "amd64" ]; then \
curl -fsSL "https://github.com/stedolan/jq/releases/download/jq-${JQ_VERSION}/jq-linux64" -o /usr/local/bin/jq; \
curl -fsSL "https://github.com/jqlang/jq/releases/download/jq-${JQ_VERSION}/jq-linux-amd64" -o /usr/local/bin/jq; \
chmod +x /usr/local/bin/jq; \
elif [ "${TARGETARCH}" = "arm64" ]; then \
curl -fsSL "https://github.com/jqlang/jq/releases/download/jq-${JQ_VERSION}/jq-linux-arm64" -o /usr/local/bin/jq; \
chmod +x /usr/local/bin/jq; \
fi; \
# yq
curl -fsSL "https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_linux_${TARGETARCH}" -o /usr/local/bin/yq; \
Expand Down
7 changes: 5 additions & 2 deletions 8.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ ENV \
PLATFORMSH_CLI_VERSION=4.9.0 \
ACQUIA_CLI_VERSION=2.15.0 \
TERMINUS_VERSION=3.2.1 \
JQ_VERSION=1.6 \
JQ_VERSION=1.7 \
YQ_VERSION=4.35.1
RUN set -xe; \
# Composer 1.x
Expand All @@ -289,8 +289,11 @@ RUN set -xe; \
curl -fsSL "https://github.com/pantheon-systems/terminus/releases/download/${TERMINUS_VERSION}/terminus.phar" -o /usr/local/bin/terminus; \
# jq (no arm64)
if [ "${TARGETARCH}" = "amd64" ]; then \
curl -fsSL "https://github.com/stedolan/jq/releases/download/jq-${JQ_VERSION}/jq-linux64" -o /usr/local/bin/jq; \
curl -fsSL "https://github.com/jqlang/jq/releases/download/jq-${JQ_VERSION}/jq-linux-amd64" -o /usr/local/bin/jq; \
chmod +x /usr/local/bin/jq; \
elif [ "${TARGETARCH}" = "arm64" ]; then \
curl -fsSL "https://github.com/jqlang/jq/releases/download/jq-${JQ_VERSION}/jq-linux-arm64" -o /usr/local/bin/jq; \
chmod +x /usr/local/bin/jq; \
fi; \
# yq
curl -fsSL "https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_linux_${TARGETARCH}" -o /usr/local/bin/yq; \
Expand Down

0 comments on commit 10985a8

Please sign in to comment.