You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
534 B

  1. #!/bin/bash
  2. {{ docker_bin_dir }}/docker run --rm \
  3. --net=host \
  4. --name=helm \
  5. -v /root/.kube:/root/.kube:ro \
  6. -v /etc/ssl:/etc/ssl:ro \
  7. -v {{ helm_home_dir }}:{{ helm_home_dir }}:rw \
  8. {% for dir in ssl_ca_dirs -%}
  9. -v {{ dir }}:{{ dir }}:ro \
  10. {% endfor -%}
  11. {% if http_proxy is defined or https_proxy is defined -%}
  12. -e http_proxy="{{proxy_env.http_proxy}}" \
  13. -e https_proxy="{{proxy_env.https_proxy}}" \
  14. -e no_proxy="{{proxy_env.no_proxy}}" \
  15. {% endif -%}
  16. {{ helm_image_repo }}:{{ helm_image_tag}} \
  17. "$@"