From 9760cc5bc9737d90f37f3e46a2c3a5af90b2f3ef Mon Sep 17 00:00:00 2001 From: Angelo Ross Date: Wed, 2 Aug 2023 18:00:14 -0300 Subject: [PATCH] Make Helm Plugins available to all users --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 43a9da3..410c90a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,6 +29,10 @@ RUN . /envfile && echo $ARCH && \ chmod +x /usr/bin/helm && \ rm -rf linux-${ARCH} +ENV HELM_PLUGINS=/helm-plugins +RUN mkdir -p "$HELM_PLUGINS" && \ + chmod 755 "$HELM_PLUGINS" + # add helm-diff RUN helm plugin install https://github.com/databus23/helm-diff && rm -rf /tmp/helm-* @@ -38,7 +42,7 @@ RUN helm plugin install https://github.com/helm-unittest/helm-unittest && rm -rf # add helm-push RUN helm plugin install https://github.com/chartmuseum/helm-push && \ rm -rf /tmp/helm-* \ - /root/.local/share/helm/plugins/helm-push/testdata \ + "$HELM_PLUGINS/helm-push/testdata" \ /root/.cache/helm/plugins/https-github.com-chartmuseum-helm-push/testdata # Install kubectl