mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 10:02:56 +01:00
Add a Dockerfile.cloud-native for jobs that need kubctl / helm / terraform
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
79cda0fd05
commit
00259d7e25
2 changed files with 35 additions and 0 deletions
33
Dockerfile.gitlab-charts-build-base
Normal file
33
Dockerfile.gitlab-charts-build-base
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
FROM ruby:2.4.4-alpine
|
||||
MAINTAINER GitLab Distribution Team
|
||||
|
||||
ENV TF_VERSION=0.11.1
|
||||
ENV TF_URL=https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_linux_amd64.zip
|
||||
|
||||
ENV HELM_VERSION=2.8.2
|
||||
ENV HELM_URL=https://kubernetes-helm.storage.googleapis.com/helm-v${HELM_VERSION}-linux-amd64.tar.gz
|
||||
|
||||
# kubectl (possibly in gcloud?)
|
||||
ENV KUBECTL_VERSION=1.8.8
|
||||
ENV KUBECTL_URL=https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl
|
||||
|
||||
# Install dependencies
|
||||
RUN apk --no-cache add -U openssl curl tar gzip bash ca-certificates git python2\
|
||||
&& mkdir /opt
|
||||
|
||||
# Install kubectl
|
||||
RUN curl -L -o /usr/local/bin/kubectl ${KUBECTL_URL} \
|
||||
&& chmod +x /usr/local/bin/kubectl \
|
||||
&& kubectl version --client
|
||||
|
||||
# Install Terraform
|
||||
RUN curl -LJO ${TF_URL} \
|
||||
&& unzip terraform*.zip -d /usr/bin && chmod +x /usr/bin/terraform \
|
||||
&& rm terraform*.zip \
|
||||
&& terraform version
|
||||
|
||||
# Install Helm
|
||||
RUN wget -q -O - ${HELM_URL} | tar zxf - \
|
||||
&& mv linux-amd64/helm /usr/bin/ \
|
||||
&& chmod +x /usr/bin/helm \
|
||||
&& helm version --client
|
||||
Loading…
Add table
Add a link
Reference in a new issue