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.

16 lines
500 B

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