-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 1022 Bytes
/
Dockerfile
File metadata and controls
25 lines (19 loc) · 1022 Bytes
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
FROM alpine:3
# variable "VERSION" must be passed as docker environment variables during the image build
# docker build --no-cache --build-arg HELM_VERSION=3.2.1 --build-arg YQ_VERSION=3.3.0 -t renaultdigital/helm:2.12.0 .
ARG HELM_VERSION=3.2.1
ARG YQ_VERSION=v4.2.1
ENV HELM_SOURCE="https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz"
ENV YQ_SOURCE="https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64"
ENV HELM_PUSH_SOURCE="https://github.com/chartmuseum/helm-push.git"
RUN apk add --update --no-cache git curl ca-certificates && rm -f /var/cache/apk/* && \
curl -L ${YQ_SOURCE} --output /usr/bin/yq && \
chmod +x /usr/bin/yq && \
curl -L ${HELM_SOURCE} | tar xzf - linux-amd64/helm --strip-components=1 && \
mv helm /usr/bin/helm && \
chmod +x /usr/bin/helm && \
if [[ $(echo $HELM_VERSION | cut -d '.' -f 1) == "2" ]]; then helm init --client-only; fi && \
helm plugin install ${HELM_PUSH_SOURCE}
WORKDIR /apps
ENTRYPOINT ["helm"]
CMD ["--help"]