aboutsummaryrefslogtreecommitdiff
path: root/docker/base
diff options
context:
space:
mode:
authorMichał Nasiadka <mnasiadka@gmail.com>2020-12-02 18:46:53 +0100
committerMichał Nasiadka <mnasiadka@gmail.com>2020-12-02 18:48:22 +0100
commit22c32a30e62d42c3631306775c0cd029eb659e9a (patch)
tree2920e76c6d37859fa630eab8d01059cc04c06223 /docker/base
parente0835803d7d3dcf5a33ffa2885275292ff5b6173 (diff)
downloadkolla-22c32a30e62d42c3631306775c0cd029eb659e9a.tar.gz
kolla-22c32a30e62d42c3631306775c0cd029eb659e9a.zip
Unify curl options
Currently we use couple of curl options throughout Dockerfiles, this change adds all common options to curlrc (-sSLf) and removes usage of those in Dockerfiles. Change-Id: I46b77978926fc2b578a68d1aaa944b2198af0685
Diffstat (limited to 'docker/base')
-rw-r--r--docker/base/Dockerfile.j24
-rw-r--r--docker/base/curlrc2
2 files changed, 4 insertions, 2 deletions
diff --git a/docker/base/Dockerfile.j2 b/docker/base/Dockerfile.j2
index 799847183..11da4e7a6 100644
--- a/docker/base/Dockerfile.j2
+++ b/docker/base/Dockerfile.j2
@@ -393,7 +393,7 @@ COPY apt_preferences /etc/apt/preferences.d/kolla-custom
{% endif -%}
{% endfor %}
{% for key in remote_apt_keys | customizable('remote_apt_keys') %}
- {%- if loop.first %} RUN {% else %} && {% endif %}curl -L {{ key }} | apt-key add -
+ {%- if loop.first %} RUN {% else %} && {% endif %}curl {{ key }} | apt-key add -
{%- if not loop.last %} \
{% endif -%}
{% endfor %}
@@ -427,7 +427,7 @@ COPY curlrc /root/.curlrc
{% block dumb_init_installation %}
-RUN curl -sSL https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_{{debian_arch}} -o /usr/local/bin/dumb-init \
+RUN curl https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_{{debian_arch}} -o /usr/local/bin/dumb-init \
&& chmod +x /usr/local/bin/dumb-init
{% endblock %}
diff --git a/docker/base/curlrc b/docker/base/curlrc
index 903967b80..c1c1303e8 100644
--- a/docker/base/curlrc
+++ b/docker/base/curlrc
@@ -1,4 +1,6 @@
# curl default options
+--fail
+--location
--silent
--show-error
--write-out "curl (%{url_effective}): response: %{http_code}, time: %{time_total}, size: %{size_download}\n"