-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathDockerfile
49 lines (43 loc) · 1.88 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM debian:stretch
WORKDIR /tmp
# Install Google Cloud SDKbundle with all components and dependencies
# Dockerfile commands from https://hub.docker.com/r/google/cloud-sdk/dockerfile
ARG CLOUD_SDK_VERSION=229.0.0
ENV CLOUD_SDK_VERSION=$CLOUD_SDK_VERSION
ARG INSTALL_COMPONENTS=kubectl
RUN apt-get update -qqy && apt-get install -qqy \
curl \
gcc \
python-dev \
python-setuptools \
apt-transport-https \
lsb-release \
openssh-client \
git \
gnupg \
&& easy_install -U pip && \
pip install -U crcmod && \
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" && \
echo "deb https://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" > /etc/apt/sources.list.d/google-cloud-sdk.list && \
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - && \
apt-get update && apt-get install -y google-cloud-sdk=${CLOUD_SDK_VERSION}-0 $INSTALL_COMPONENTS && \
gcloud config set core/disable_usage_reporting true && \
gcloud config set component_manager/disable_update_check true && \
gcloud config set metrics/environment github_docker_image && \
gcloud --version VOLUME ["/root/.config"]
# Install Terraform
RUN apt-get install -qqy unzip && \
curl -O https://releases.hashicorp.com/terraform/0.11.11/terraform_0.11.11_linux_amd64.zip && \
unzip terraform_0.11.11_linux_amd64.zip && \
install terraform /usr/local/bin/
# Install Helm
RUN curl -O https://storage.googleapis.com/kubernetes-helm/helm-v2.12.2-linux-amd64.tar.gz && \
tar -xzvf helm-v2.12.2-linux-amd64.tar.gz && \
install linux-amd64/tiller /usr/local/bin/ && \
install linux-amd64/helm /usr/local/bin/
# Install aws-iam-authenticator
RUN curl -O https://amazon-eks.s3-us-west-2.amazonaws.com/1.11.5/2018-12-06/bin/linux/amd64/aws-iam-authenticator && \
install aws-iam-authenticator /usr/local/bin/
# Install terraform-provider-helm
RUN mkdir -p ~/.terraform.d/plugins
COPY terraform-provider-helm ~/.terraform.d/plugins/