aboutsummaryrefslogtreecommitdiff
path: root/docker/base
diff options
context:
space:
mode:
authorSergei Chekanov <chekanovsm@gmail.com>2021-03-02 17:23:23 +0300
committerSergei Chekanov <chekanovsm@gmail.com>2021-03-02 17:28:59 +0300
commit61def281d077f88051d1b1a14dfdbfabac036c8c (patch)
tree70e0112b04b6c96b7cae07732b17f2b569c52812 /docker/base
parent8d70e3f0cc3681c6f786ccbe076cd6a028998857 (diff)
downloadkolla-61def281d077f88051d1b1a14dfdbfabac036c8c.tar.gz
kolla-61def281d077f88051d1b1a14dfdbfabac036c8c.zip
Fix error when github return 302
-L for curl: If the server reports that the requested page has moved to a different location (indicated with a Location: header and a 3XX response code), this option will make curl redo the request on the new place It fixes build error for me: INFO:kolla.common.utils.prometheus-v2-server: ---> Running in 693fd4095c77 INFO:kolla.common.utils.prometheus-v2-server:curl (https://github.com/prometheus/prometheus/releases/download/v2.23.0/prometheus-2.23.0.linux-amd64.tar.gz): response: 302, time: 0.166583, size: 640 INFO:kolla.common.utils.prometheus-v2-server: INFO:kolla.common.utils.prometheus-v2-server:gzip: stdin: not in gzip format INFO:kolla.common.utils.prometheus-v2-server: INFO:kolla.common.utils.prometheus-v2-server:tar: Child returned status 1 INFO:kolla.common.utils.prometheus-v2-server:tar: Error is not recoverable: exiting now Change-Id: I095ca6f34cc7c7bca485e9ec019cc52aeb8e3ff4
Diffstat (limited to 'docker/base')
-rw-r--r--docker/base/Dockerfile.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/base/Dockerfile.j2 b/docker/base/Dockerfile.j2
index 2af50509f..7bd9710b7 100644
--- a/docker/base/Dockerfile.j2
+++ b/docker/base/Dockerfile.j2
@@ -415,7 +415,7 @@ COPY curlrc /root/.curlrc
{% block dumb_init_installation %}
-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 \
+RUN curl -Lo /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_{{debian_arch}} \
&& chmod +x /usr/local/bin/dumb-init
{% endblock %}