gitlab-build-images/Dockerfile.gitlab-charts-build-base-helm-3.7
Robert Marshall 10778050c4 Update build images to use python3
- Python2 sunset was January 1, 2020. Update all images to use python3
  and pip3 related tools. This upgrade was already performed in Omnibus
  GitLab builders.

Signed-off-by: Robert Marshall <rmarshall@gitlab.com>
2022-06-03 11:11:27 -04:00

32 lines
970 B
Docker

FROM ruby:2.7.6-alpine
MAINTAINER GitLab Distribution Team
ENV HELM_VERSION=3.7.2
ENV HELM_URL=https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz
ENV HELM_HOME=/root/.helm
# kubectl (possibly in gcloud?)
ENV KUBECTL_VERSION=1.20.15
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 python3 py3-pip groff\
&& mkdir -p /opt
# Install kubectl
RUN curl -L -o /usr/local/bin/kubectl ${KUBECTL_URL} \
&& chmod +x /usr/local/bin/kubectl \
&& kubectl version --client
# Install Helm
RUN wget -q -O - ${HELM_URL} | tar zxf - \
&& mv linux-amd64/helm /usr/bin/ \
&& chmod +x /usr/bin/helm \
&& helm version --client
# Install kubeval
RUN mkdir -p $HELM_HOME/plugins && \
helm plugin install https://github.com/instrumenta/helm-kubeval
# Install aws cli
RUN pip3 install awscli