File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FROM python:3.12-slim
22
3- ARG TARGETPLATFORM
3+ ARG TARGETARCH
44
55# #
66# # Install kubectl and dependencies.
@@ -14,18 +14,18 @@ ENV HELM_VERSION="v3.6.2" \
1414RUN apt-get update \
1515 && apt-get install wget ca-certificates bash git git-crypt -y --no-install-recommends \
1616 # Download kubectl
17- && wget -q https://storage.googleapis.com/kubernetes-release/release/${KUBE_LATEST_VERSION}/bin/linux/${TARGETPLATFORM }/kubectl -O /usr/local/bin/kubectl \
17+ && wget -q https://storage.googleapis.com/kubernetes-release/release/${KUBE_LATEST_VERSION}/bin/linux/${TARGETARCH }/kubectl -O /usr/local/bin/kubectl \
1818 && chmod +x /usr/local/bin/kubectl \
1919 \
2020 # Download helm
21- && wget -q https://get.helm.sh/helm-${HELM_VERSION}-linux-${TARGETPLATFORM }.tar.gz -O - | tar -xzO linux-${TARGETPLATFORM }/helm > /usr/local/bin/helm \
21+ && wget -q https://get.helm.sh/helm-${HELM_VERSION}-linux-${TARGETARCH }.tar.gz -O - | tar -xzO linux-${TARGETARCH }/helm > /usr/local/bin/helm \
2222 && chmod +x /usr/local/bin/helm \
2323 \
2424 # Install helm-secrets plugin
2525 && helm plugin install https://github.com/jkroepke/helm-secrets --version v4.2.2 \
2626 \
2727 # Download sops
28- && wget -q https://github.com/mozilla/sops/releases/download/v3.7.3/sops-v3.7.3.linux.${TARGETPLATFORM } -O /usr/local/bin/sops \
28+ && wget -q https://github.com/mozilla/sops/releases/download/v3.7.3/sops-v3.7.3.linux.${TARGETARCH } -O /usr/local/bin/sops \
2929 && chmod +x /usr/local/bin/sops \
3030 \
3131 && apt-get clean \
You can’t perform that action at this time.
0 commit comments