-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docker): add image that contains gcloud and aws
- Loading branch information
1 parent
6dcbb61
commit 28ded99
Showing
4 changed files
with
49 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
ARG TAG=latest | ||
FROM google/cloud-sdk:277.0.0-alpine as gcloud | ||
|
||
RUN gcloud components install kubectl | ||
|
||
FROM gardendev/garden:${TAG} | ||
|
||
ENV CLOUDSDK_PYTHON=python3 | ||
|
||
COPY --from=gcloud /google-cloud-sdk /google-cloud-sdk | ||
|
||
RUN apk add --no-cache python3 \ | ||
&& ln -s /google-cloud-sdk/bin/* /usr/local/bin/ \ | ||
&& chmod +x /usr/local/bin/* | ||
|
||
RUN apk add --no-cache python py-pip \ | ||
&& pip install awscli==1.17.9 --upgrade \ | ||
&& apk del py-pip | ||
|
||
RUN curl -o aws-iam-authenticator https://amazon-eks.s3.us-west-2.amazonaws.com/1.15.10/2020-02-22/bin/linux/amd64/aws-iam-authenticator \ | ||
&& chmod +x ./aws-iam-authenticator \ | ||
&& mv ./aws-iam-authenticator /usr/bin/ |
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