Skip to content

Commit

Permalink
test fixing an issue
Browse files Browse the repository at this point in the history
  • Loading branch information
julienp committed Dec 17, 2024
1 parent 60b788e commit 252fd84
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docker/pulumi/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
FROM golang:1.23-bookworm as buider

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
Expand Down Expand Up @@ -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 && \
Expand Down

0 comments on commit 252fd84

Please sign in to comment.