Add helm_repository_install_kubernetes_helm block for helm Dockerfile.j2

Allow overriding of kubernetes-helm to facilitate an alternate location.

Change-Id: I630d1e1368ddbbbc795048a73ecc182952da751d
This commit is contained in:
James McCarthy 2017-02-20 11:30:54 +00:00
parent ae4318ff0c
commit 16366bb571

View File

@ -42,10 +42,12 @@ RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
RUN pip install pyyaml
{% block helm_repository_install_kubernetes_helm %}
RUN curl -Lo /tmp/helm-v${helm_version}-linux-amd64.tar.gz http://storage.googleapis.com/kubernetes-helm/helm-v${helm_version}-linux-amd64.tar.gz \
&& sudo tar --strip-components 1 -C /usr/bin linux-amd64/helm -zxvf /tmp/helm-v${helm_version}-linux-amd64.tar.gz \
&& sudo chmod 755 /usr/bin/helm \
&& rm /tmp/helm-v${helm_version}-linux-amd64.tar.gz
{% endblock %}
RUN useradd --user-group --create-home --home-dir /home/helm helm \
&& sudo mkdir /helm-repo \