Added helmdiff, kubectl, and helmfile to the Dockerfile for enhanced Kubernetes and Helm management.

This commit is contained in:
Haitao Pan 2024-03-06 21:07:54 +08:00
parent 0dbd87dd1d
commit 0ea7a72565

View File

@ -3,6 +3,8 @@ MAINTAINER Haitao Pan manbuzhe2008@gmail.com
ENV VERSION=3.11.1
ENV BASE_URL="https://get.helm.sh"
ENV KUBECTL_VERSION="v1.21.0"
ENV HELMFILE_VERSION="v0.139.9"
RUN case `uname -m` in \
x86_64) ARCH=amd64; ;; \
@ -16,7 +18,12 @@ RUN case `uname -m` in \
rm -rf linux-${ARCH} && \
chmod 755 /usr//bin/helm && \
helm plugin install https://github.com/chartmuseum/helm-push.git && \
helm plugin install https://github.com/belitre/helm-push-artifactory-plugin.git --version v1.0.2
helm plugin install https://github.com/belitre/helm-push-artifactory-plugin.git --version v1.0.2 && \
helm plugin install https://github.com/databus23/helm-diff && \
wget -qO /usr/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl && \
chmod +x /usr/bin/kubectl && \
wget -qO /usr/bin/helmfile https://github.com/roboll/helmfile/releases/download/${HELMFILE_VERSION}/helmfile_linux_${ARCH} && \
chmod +x /usr/bin/helmfile
#ADD ca.crt /usr/share/ca-certificates/mozilla/Lets_Encrypt_ca.crt
#RUN echo "mozilla/Lets_Encrypt_ca.crt" >> /etc/ca-certificates.conf && update-ca-certificates