Skip to content

Commit

Permalink
add aws-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Wang committed Sep 25, 2019
1 parent 41d0e4d commit 9e8b738
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,19 @@ RUN apk add --update --no-cache curl ca-certificates && \
RUN apk add --update --no-cache curl && \
curl -LO https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl && \
mv kubectl /usr/bin/kubectl && \
chmod +x /usr/bin/kubectl && \
apk del curl && \
rm -f /var/cache/apk/*

chmod +x /usr/bin/kubectl

# Install aws-iam-authenticator (latest version)
RUN apk add --update --no-cache curl && \
curl -LO https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v${AWS_IAM_AUTH_VERSION}/aws-iam-authenticator_0.4.0_linux_amd64 && \
RUN curl -LO https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v${AWS_IAM_AUTH_VERSION}/aws-iam-authenticator_0.4.0_linux_amd64 && \
mv aws-iam-authenticator_0.4.0_linux_amd64 /usr/bin/aws-iam-authenticator && \
chmod +x /usr/bin/aws-iam-authenticator && \
apk del curl && \
rm -f /var/cache/apk/*
chmod +x /usr/bin/aws-iam-authenticator

# Install eksctl (latest version)
RUN curl --silent --location "https://github.com/weaveworks/eksctl/releases/download/latest_release/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp && \
mv /tmp/eksctl /usr/bin && \
chmod +x /usr/bin/eksctl

# Install awscli
RUN apk add --update --no-cache aws-cli

WORKDIR /apps

0 comments on commit 9e8b738

Please sign in to comment.