This repository has been archived on 2024-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
check-da-helm/dockerfiles/Dockerfile-helmfile

17 lines
744 B
Plaintext
Raw Normal View History

FROM ghcr.io/allanger/clever-install as builder
RUN apk update && apk add tar
ARG HELM_VERSION=v3.10.3
ARG HELMFILE_VERSION=v0.144.0
ENV RUST_LOG=info
RUN clin -l "https://github.com/roboll/helmfile/releases/download/{{ version }}/helmfile_{{ os }}_{{ arch }}" -i /tmp/helmfile -p $HELMFILE_VERSION
RUN clin -l "https://get.helm.sh/helm-{{ version }}-{{ os }}-{{ arch }}.tar.gz" -i /tmp/helm.tar.gz -p $HELM_VERSION
RUN tar -xf /tmp/helm.tar.gz -C /tmp && rm -f /tmp/helm.tar.gz
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
2023-01-25 11:54:22 +00:00
FROM check-da-helm-base
COPY --from=builder /out/ /usr/bin
RUN apk update --no-cache && apk add --no-cache jq bash
ENTRYPOINT ["cdh"]