-
Notifications
You must be signed in to change notification settings - Fork 23
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
Showing
5 changed files
with
43 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
FROM golang:1.23-bookworm as builder | ||
|
||
RUN go install sigs.k8s.io/aws-iam-authenticator/cmd/[email protected] | ||
|
||
FROM debian:12 AS base | ||
|
||
# These values are passed in by the build system automatically. The options are: arm64, amd64 | ||
|
@@ -41,16 +45,14 @@ RUN apt-get update -y && \ | |
rm -rf /var/lib/apt/lists/* | ||
|
||
# Install cloud tools | ||
COPY --from=builder /go/bin/aws-iam-authenticator /usr/bin/aws-iam-authenticator | ||
RUN \ | ||
# Setup environment variables for architecture-specific packages | ||
if [ "$TARGETARCH" = "arm64" ]; then \ | ||
AWSCLI_ARCH=aarch64; \ | ||
else \ | ||
AWSCLI_ARCH=x86_64; \ | ||
fi && \ | ||
# IAM Authenticator for EKS | ||
curl -fsSLo /usr/bin/aws-iam-authenticator https://amazon-eks.s3-us-west-2.amazonaws.com/1.28.2/2023-10-17/bin/linux/${TARGETARCH}/aws-iam-authenticator && \ | ||
chmod +x /usr/bin/aws-iam-authenticator && \ | ||
# AWS v2 cli | ||
curl "https://awscli.amazonaws.com/awscli-exe-linux-${AWSCLI_ARCH}.zip" -o "awscliv2.zip" && \ | ||
unzip awscliv2.zip && \ | ||
|
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