Skip to content

Commit 3654381

Browse files
committed
feat(tools): install yq
1 parent 8b3c3c6 commit 3654381

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

tools/Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ ARG PRODUCT
77
ARG KUBECTL_VERSION
88
ARG RELEASE
99
ARG JQ_VERSION
10+
ARG YQ_VERSION
1011
ARG TARGETARCH
1112
ARG STACKABLE_USER_UID
1213

@@ -36,14 +37,18 @@ ENV PATH=/stackable/bin:$PATH
3637

3738
# Get latest stable version from curl -L -s https://dl.k8s.io/release/stable.txt
3839
RUN <<EOF
39-
curl "https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/${TARGETARCH}/kubectl" \
40+
curl --fail -L "https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/${TARGETARCH}/kubectl" \
4041
-o /stackable/bin/kubectl
4142
chmod +x /stackable/bin/kubectl
4243

43-
curl "https://github.com/stedolan/jq/releases/download/jq-${JQ_VERSION}/jq-linux64" \
44+
curl --fail -L "https://github.com/stedolan/jq/releases/download/jq-${JQ_VERSION}/jq-linux64" \
4445
-o /stackable/bin/jq
4546
chmod +x /stackable/bin/jq
4647

48+
curl --fail -L "https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_linux_${TARGETARCH}" \
49+
-o /stackable/bin/yq
50+
chmod +x /stackable/bin/yq
51+
4752
# All files and folders owned by root group to support running as arbitrary users.
4853
# This is best practice as all container users will belong to the root group (0).
4954
chown -R ${STACKABLE_USER_UID}:0 /stackable

tools/versions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"kubectl_version": "1.31.1",
55
"jq_version": "1.7.1",
66
"stackable-base": "1.0.0",
7+
"yq_version": "4.44.3",
78
},
89
]

0 commit comments

Comments
 (0)