forked from dtzar/helm-kubectl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
34 lines (28 loc) · 1.52 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
ARG BUILDPLATFORM
FROM ${BUILDPLATFORM}alpine:3
ARG KUBE_VERSION
ARG HELM_VERSION
ARG TERRAFORM_VERSION
ARG TARGETOS
ARG TARGETARCH
ARG YQ_VERSION
RUN apk -U upgrade \
&& apk add --no-cache bash build-base ca-certificates curl gettext git jq openssh python3 python3-dev py3-pip unzip \
&& wget -q https://storage.googleapis.com/kubernetes-release/release/v${KUBE_VERSION}/bin/${TARGETOS}/${TARGETARCH}/kubectl -O /usr/local/bin/kubectl \
&& wget -q https://get.helm.sh/helm-v${HELM_VERSION}-${TARGETOS}-${TARGETARCH}.tar.gz -O - | tar -xzO ${TARGETOS}-${TARGETARCH}/helm > /usr/local/bin/helm \
&& wget -q https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_${TARGETOS}_${TARGETARCH} -O /usr/local/bin/yq \
&& wget -q https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_${TARGETOS}_${TARGETARCH}.zip \
&& unzip -p terraform_${TERRAFORM_VERSION}_${TARGETOS}_${TARGETARCH}.zip > /usr/local/bin/terraform \
&& rm -rf terraform_${TERRAFORM_VERSION}_${TARGETOS}_${TARGETARCH}.zip \
&& chmod +x /usr/local/bin/helm /usr/local/bin/kubectl /usr/local/bin/yq /usr/local/bin/terraform \
&& mkdir /config \
&& chmod g+rwx /config /root \
&& helm repo add "stable" "https://charts.helm.sh/stable" --force-update \
&& kubectl version --client \
&& helm version
RUN helm plugin install https://github.com/chartmuseum/helm-push
RUN pip install --upgrade pip
RUN pip install --upgrade setuptools
RUN pip install docker-compose-templer
WORKDIR /config
CMD bash