2017-03-17 11:56:25 +00:00
|
|
|
#!/bin/bash
|
|
|
|
{{ docker_bin_dir }}/docker run --rm \
|
|
|
|
--net=host \
|
|
|
|
--name=helm \
|
|
|
|
-v /etc/ssl:/etc/ssl:ro \
|
2017-04-21 02:51:27 +00:00
|
|
|
-v {{ helm_home_dir }}:{{ helm_home_dir }}:rw \
|
2017-03-17 11:56:25 +00:00
|
|
|
{% for dir in ssl_ca_dirs -%}
|
|
|
|
-v {{ dir }}:{{ dir }}:ro \
|
2017-10-27 21:14:05 +00:00
|
|
|
{% endfor -%}
|
2017-10-30 17:11:04 +00:00
|
|
|
{% if http_proxy is defined or https_proxy is defined -%}
|
2017-10-27 21:14:05 +00:00
|
|
|
-e http_proxy="{{proxy_env.http_proxy}}" \
|
|
|
|
-e https_proxy="{{proxy_env.https_proxy}}" \
|
|
|
|
-e no_proxy="{{proxy_env.no_proxy}}" \
|
|
|
|
{% endif -%}
|
2017-03-17 11:56:25 +00:00
|
|
|
{{ helm_image_repo }}:{{ helm_image_tag}} \
|
|
|
|
"$@"
|