-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nguyen Hoan Tien
committed
Oct 30, 2023
1 parent
94dc8a5
commit 02a6df6
Showing
5 changed files
with
42 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
FROM alpine:3 | ||
FROM --platform=$TARGETPLATFORM alpine:3 | ||
MAINTAINER Armory <[email protected]> | ||
|
||
ENV KUBECTL_RELEASE=1.26.2 | ||
ARG TARGETARCH | ||
|
||
ENV KUBECTL_RELEASE=1.27.3 | ||
ENV AWS_IAM_AUTHENTICATOR_VERSION=0.6.2 | ||
ENV JQ_VERSION=1.6-r2 | ||
ENV AWS_CLI_VERSION=1.27.87 | ||
|
@@ -27,20 +29,20 @@ RUN apk update && apk add --no-cache \ | |
&& rm -rf /var/cache/apk/* | ||
|
||
# install kubectl, latest version can be found here: https://storage.googleapis.com/kubernetes-release/release/stable.txt | ||
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_RELEASE}/bin/linux/amd64/kubectl \ | ||
&& chmod +x ./kubectl \ | ||
&& mv ./kubectl /usr/local/bin/kubectl \ | ||
&& ln -sv /usr/local/bin/kubectl /usr/local/bin/k \ | ||
&& ln -sv /usr/local/bin/kubectl /usr/local/bin/kub | ||
RUN wget https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_RELEASE}/bin/linux/${TARGETARCH}/kubectl \ | ||
&& chmod +x kubectl \ | ||
&& mv ./kubectl /usr/local/bin/kubectl \ | ||
&& ln -sv /usr/local/bin/kubectl /usr/local/bin/k \ | ||
&& ln -sv /usr/local/bin/kubectl /usr/local/bin/kub | ||
|
||
# install aws-iam-authenticator, latest version can be found here: https://github.com/kubernetes-sigs/aws-iam-authenticator/releases | ||
# note: for EKS you can also use `aws eks get-token` now, see https://docs.aws.amazon.com/eks/latest/userguide/install-aws-iam-authenticator.html | ||
RUN curl -Lo aws-iam-authenticator https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v${AWS_IAM_AUTHENTICATOR_VERSION}/aws-iam-authenticator_${AWS_IAM_AUTHENTICATOR_VERSION}_linux_amd64 \ | ||
RUN curl -Lo aws-iam-authenticator https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v${AWS_IAM_AUTHENTICATOR_VERSION}/aws-iam-authenticator_${AWS_IAM_AUTHENTICATOR_VERSION}_linux_${TARGETARCH} \ | ||
&& chmod +x ./aws-iam-authenticator \ | ||
&& mv ./aws-iam-authenticator /usr/local/bin/aws-iam-authenticator | ||
|
||
# install vault, latest version can be found here: https://www.vaultproject.io/downloads.html | ||
RUN curl -O https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_amd64.zip \ | ||
RUN curl -O https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_${TARGETARCH}.zip \ | ||
&& unzip vault* \ | ||
&& mv vault /usr/bin/ \ | ||
&& rm -rf vault* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters