Sign inSign up

thanandorn/gkh

By thanandorn

•Updated almost 3 years ago

Terraform, Google Cloud SDK, Helm and Kubectl

Image
0

7.9K

thanandorn/gkh repository overview

⁠Dockerfile

FROM alpine:3.8
ARG CLOUD_SDK_VERSION=219.0.1
ENV CLOUD_SDK_VERSION=$CLOUD_SDK_VERSION
ARG HELM_VERSION=2.11.0
ENV HELM_VERSION=$HELM_VERSION
ARG TERRAFORM_VERSION=0.11.8
ENV TERRAFORM_VERSION=$TERRAFORM_VERSION

ENV PATH /google-cloud-sdk/bin:$PATH
RUN apk --no-cache add \
        curl \
        python \
        py-crcmod \
        bash \
        libc6-compat \
        openssh-client \
        git \
        bash \
        gnupg \
    && curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz && \
    tar xzf google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz && \
    rm google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz && \
    ln -s /lib /lib64 && \
    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 components install beta --quiet && \
    gcloud components install kubectl --quiet && \
    gcloud --version && \
    curl -O https://storage.googleapis.com/kubernetes-helm/helm-v${HELM_VERSION}-linux-amd64.tar.gz && \
    tar zxf helm-v${HELM_VERSION}-linux-amd64.tar.gz && \
    mv linux-amd64/* /usr/local/bin/ && \
    rm -rf linux-amd64 helm-v${HELM_VERSION}-linux-amd64.tar.gz
RUN curl -O https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \
    unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /usr/local/bin && \
    rm -f terraform_${TERRAFORM_VERSION}_linux_amd64.zip
VOLUME ["/root/.config"]

Tag summary

Content type

Image

Digest

Size

150.6 MB

Last updated

about 8 years ago

docker pull thanandorn/gkh