check-da-helm/dockerfiles/Dockerfile-helmfile

19 lines
923 B
Plaintext
Raw Normal View History

2023-02-15 08:01:11 +00:00
ARG BASE_VERSION=latest
FROM ghcr.io/allanger/dumb-downloader as builder
2023-02-14 21:16:34 +00:00
RUN apt-get update -y && apt-get install tar -y
2023-06-27 02:21:28 +00:00
ARG HELM_VERSION=v3.12.1
ARG HELMFILE_VERSION=0.154.0
2023-02-14 21:16:34 +00:00
ENV RUST_LOG=info
RUN dudo -l "https://github.com/helmfile/helmfile/releases/download/v{{ version }}/helmfile_{{ version }}_{{ os }}_{{ arch }}.tar.gz" -d /tmp/helmfile.tar.gz -p $HELMFILE_VERSION
RUN dudo -l "https://get.helm.sh/helm-{{ version }}-{{ os }}-{{ arch }}.tar.gz" -d /tmp/helm.tar.gz -p $HELM_VERSION
2023-02-14 21:16:34 +00:00
RUN tar -xf /tmp/helm.tar.gz -C /tmp && rm -f /tmp/helm.tar.gz
2023-02-15 13:20:58 +00:00
RUN tar -xf /tmp/helmfile.tar.gz -C /tmp && rm -f /tmp/helmfile.tar.gz
2023-02-14 21:16:34 +00:00
RUN mkdir /out && for bin in `find /tmp | grep helm`; do cp $bin /out/; done
RUN chmod +x /out/helm
RUN chmod +x /out/helmfile
FROM ghcr.io/allanger/check-da-helm-base:${BASE_VERSION}
2023-02-14 21:16:34 +00:00
COPY --from=builder /out/ /usr/bin
RUN apk update --no-cache && apk add --no-cache jq bash
ENTRYPOINT ["cdh"]