Revert "Fix error when github return 302"
This reverts commit 61def281d0
.
Reason for revert: --location was already in curlrc and it was unified in change I46b77978926fc2b578a68d1aaa944b2198af0685
Change-Id: I066d747400ede30037ff324ad55430af7c35dc18
This commit is contained in:
parent
61def281d0
commit
ec358f4cf7
@ -415,7 +415,7 @@ COPY curlrc /root/.curlrc
|
||||
|
||||
{% block dumb_init_installation %}
|
||||
|
||||
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}} \
|
||||
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 %}
|
||||
|
@ -10,7 +10,7 @@ ENV prometheus_alertmanager_version=0.20.0
|
||||
{% endblock %}
|
||||
|
||||
{% block prometheus_alertmanager_install %}
|
||||
RUN curl -Lo /tmp/prometheus_alertmanager.tar.gz https://github.com/prometheus/alertmanager/releases/download/v${prometheus_alertmanager_version}/alertmanager-${prometheus_alertmanager_version}.linux-{{debian_arch}}.tar.gz \
|
||||
RUN curl -o /tmp/prometheus_alertmanager.tar.gz https://github.com/prometheus/alertmanager/releases/download/v${prometheus_alertmanager_version}/alertmanager-${prometheus_alertmanager_version}.linux-{{debian_arch}}.tar.gz \
|
||||
&& tar xvf /tmp/prometheus_alertmanager.tar.gz -C /opt/ \
|
||||
&& rm -f /tmp/prometheus_alertmanager.tar.gz \
|
||||
&& ln -s /opt/alertmanager* /opt/prometheus_alertmanager
|
||||
|
@ -24,7 +24,7 @@ ENV blackbox_exporter_version=0.16.0
|
||||
{{ macros.install_packages(blackbox_packages | customizable("packages")) }}
|
||||
|
||||
{% block prometheus_blackbox_exporter_install %}
|
||||
RUN curl -Lo /tmp/blackbox_exporter.tar.gz https://github.com/prometheus/blackbox_exporter/releases/download/v${blackbox_exporter_version}/blackbox_exporter-${blackbox_exporter_version}.linux-{{debian_arch}}.tar.gz \
|
||||
RUN curl -o /tmp/blackbox_exporter.tar.gz https://github.com/prometheus/blackbox_exporter/releases/download/v${blackbox_exporter_version}/blackbox_exporter-${blackbox_exporter_version}.linux-{{debian_arch}}.tar.gz \
|
||||
&& tar xvf /tmp/blackbox_exporter.tar.gz -C /opt/ \
|
||||
&& rm -f /tmp/blackbox_exporter.tar.gz \
|
||||
&& ln -s /opt/blackbox_exporter* /opt/blackbox_exporter
|
||||
|
@ -14,7 +14,7 @@ ENV prometheus_cadvisor_version=0.35.0
|
||||
{% if base_arch in ['x86_64'] %}
|
||||
|
||||
{% block prometheus_cadvisor_install %}
|
||||
RUN curl -Lo /opt/cadvisor https://github.com/google/cadvisor/releases/download/v${prometheus_cadvisor_version}/cadvisor && chmod 0755 /opt/cadvisor
|
||||
RUN curl -o /opt/cadvisor https://github.com/google/cadvisor/releases/download/v${prometheus_cadvisor_version}/cadvisor && chmod 0755 /opt/cadvisor
|
||||
{% endblock %}
|
||||
|
||||
{% else %}
|
||||
|
@ -10,7 +10,7 @@ ENV elasticsearch_exporter_version=1.1.0
|
||||
{% endblock %}
|
||||
|
||||
{% block prometheus_elasticsearch_exporter_install %}
|
||||
RUN curl -Lo /tmp/elasticsearch_exporter.tar.gz https://github.com/justwatchcom/elasticsearch_exporter/releases/download/v${elasticsearch_exporter_version}/elasticsearch_exporter-${elasticsearch_exporter_version}.linux-{{debian_arch}}.tar.gz \
|
||||
RUN curl -o /tmp/elasticsearch_exporter.tar.gz https://github.com/justwatchcom/elasticsearch_exporter/releases/download/v${elasticsearch_exporter_version}/elasticsearch_exporter-${elasticsearch_exporter_version}.linux-{{debian_arch}}.tar.gz \
|
||||
&& tar xvf /tmp/elasticsearch_exporter.tar.gz -C /opt/ \
|
||||
&& rm -f /tmp/elasticsearch_exporter.tar.gz \
|
||||
&& ln -s /opt/elasticsearch_exporter* /opt/elasticsearch_exporter
|
||||
|
@ -10,7 +10,7 @@ ENV haproxy_exporter_version=0.10.0
|
||||
{% endblock %}
|
||||
|
||||
{% block haproxy_exporter_install %}
|
||||
RUN curl -Lo /tmp/haproxy_exporter.tar.gz https://github.com/prometheus/haproxy_exporter/releases/download/v${haproxy_exporter_version}/haproxy_exporter-${haproxy_exporter_version}.linux-{{debian_arch}}.tar.gz \
|
||||
RUN curl -o /tmp/haproxy_exporter.tar.gz https://github.com/prometheus/haproxy_exporter/releases/download/v${haproxy_exporter_version}/haproxy_exporter-${haproxy_exporter_version}.linux-{{debian_arch}}.tar.gz \
|
||||
&& tar xvf /tmp/haproxy_exporter.tar.gz -C /opt/ \
|
||||
&& rm -f /tmp/haproxy_exporter.tar.gz \
|
||||
&& ln -s /opt/haproxy_exporter* /opt/haproxy_exporter
|
||||
|
@ -10,7 +10,7 @@ ENV memcached_exporter_version=0.6.0
|
||||
{% endblock %}
|
||||
|
||||
{% block prometheus_memcached_exporter_install %}
|
||||
RUN curl -Lo /tmp/memcached_exporter.tar.gz https://github.com/prometheus/memcached_exporter/releases/download/v${memcached_exporter_version}/memcached_exporter-${memcached_exporter_version}.linux-{{debian_arch}}.tar.gz \
|
||||
RUN curl -o /tmp/memcached_exporter.tar.gz https://github.com/prometheus/memcached_exporter/releases/download/v${memcached_exporter_version}/memcached_exporter-${memcached_exporter_version}.linux-{{debian_arch}}.tar.gz \
|
||||
&& tar xvf /tmp/memcached_exporter.tar.gz -C /opt/ \
|
||||
&& rm -f /tmp/memcached_exporter.tar.gz \
|
||||
&& ln -s /opt/memcached_exporter* /opt/memcached_exporter
|
||||
|
@ -10,7 +10,7 @@ ENV mysqld_exporter_version=0.12.1
|
||||
{% endblock %}
|
||||
|
||||
{% block mysqld_exporter_install %}
|
||||
RUN curl -Lo /tmp/mysqld_exporter.tar.gz https://github.com/prometheus/mysqld_exporter/releases/download/v${mysqld_exporter_version}/mysqld_exporter-${mysqld_exporter_version}.linux-{{debian_arch}}.tar.gz \
|
||||
RUN curl -o /tmp/mysqld_exporter.tar.gz https://github.com/prometheus/mysqld_exporter/releases/download/v${mysqld_exporter_version}/mysqld_exporter-${mysqld_exporter_version}.linux-{{debian_arch}}.tar.gz \
|
||||
&& tar xvf /tmp/mysqld_exporter.tar.gz -C /opt/ \
|
||||
&& rm -f /tmp/mysqld_exporter.tar.gz \
|
||||
&& ln -s /opt/mysqld_exporter* /opt/mysqld_exporter
|
||||
|
@ -10,7 +10,7 @@ ENV node_exporter_version=0.18.1
|
||||
{% endblock %}
|
||||
|
||||
{% block node_exporter_install %}
|
||||
RUN curl -Lo /tmp/node_exporter.tar.gz https://github.com/prometheus/node_exporter/releases/download/v${node_exporter_version}/node_exporter-${node_exporter_version}.linux-{{debian_arch}}.tar.gz \
|
||||
RUN curl -o /tmp/node_exporter.tar.gz https://github.com/prometheus/node_exporter/releases/download/v${node_exporter_version}/node_exporter-${node_exporter_version}.linux-{{debian_arch}}.tar.gz \
|
||||
&& tar xvf /tmp/node_exporter.tar.gz -C /opt/ \
|
||||
&& rm -f /tmp/node_exporter.tar.gz \
|
||||
&& ln -s /opt/node_exporter* /opt/node_exporter
|
||||
|
@ -10,7 +10,7 @@ ENV prometheus_openstack_exporter_version=1.3.0
|
||||
{% endblock %}
|
||||
|
||||
{% block prometheus_openstack_exporter_install %}
|
||||
RUN curl -Lo /tmp/prometheus_openstack_exporter.tar.gz https://github.com/openstack-exporter/openstack-exporter/releases/download/v${prometheus_openstack_exporter_version}/openstack-exporter-${prometheus_openstack_exporter_version}.linux-{{debian_arch}}.tar.gz \
|
||||
RUN curl -o /tmp/prometheus_openstack_exporter.tar.gz https://github.com/openstack-exporter/openstack-exporter/releases/download/v${prometheus_openstack_exporter_version}/openstack-exporter-${prometheus_openstack_exporter_version}.linux-{{debian_arch}}.tar.gz \
|
||||
&& tar xvf /tmp/prometheus_openstack_exporter.tar.gz -C /opt/ \
|
||||
&& rm -f /tmp/prometheus_openstack_exporter.tar.gz \
|
||||
&& ln -s /opt/openstack-exporter* /opt/openstack-exporter
|
||||
|
@ -10,7 +10,7 @@ ENV prometheus_version=1.8.2
|
||||
{% endblock %}
|
||||
|
||||
{% block prometheus_server_install %}
|
||||
RUN curl -Lo /tmp/prometheus.tar.gz https://github.com/prometheus/prometheus/releases/download/v${prometheus_version}/prometheus-${prometheus_version}.linux-{{debian_arch}}.tar.gz \
|
||||
RUN curl -o /tmp/prometheus.tar.gz https://github.com/prometheus/prometheus/releases/download/v${prometheus_version}/prometheus-${prometheus_version}.linux-{{debian_arch}}.tar.gz \
|
||||
&& tar xvf /tmp/prometheus.tar.gz -C /opt/ \
|
||||
&& rm -f /tmp/prometheus.tar.gz \
|
||||
&& ln -s /opt/prometheus* /opt/prometheus \
|
||||
|
@ -10,7 +10,7 @@ ENV prometheus_version=2.23.0
|
||||
{% endblock %}
|
||||
|
||||
{% block prometheus_v2_server_install %}
|
||||
RUN curl -Lo /tmp/prometheus.tar.gz https://github.com/prometheus/prometheus/releases/download/v${prometheus_version}/prometheus-${prometheus_version}.linux-{{debian_arch}}.tar.gz \
|
||||
RUN curl -o /tmp/prometheus.tar.gz https://github.com/prometheus/prometheus/releases/download/v${prometheus_version}/prometheus-${prometheus_version}.linux-{{debian_arch}}.tar.gz \
|
||||
&& tar xvf /tmp/prometheus.tar.gz -C /opt/ \
|
||||
&& rm -f /tmp/prometheus.tar.gz \
|
||||
&& ln -s /opt/prometheus* /opt/prometheus \
|
||||
|
@ -15,7 +15,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
|
||||
RUN echo 'image on {{ base_distro }} is not yet available on non x86_64 platforms' \
|
||||
&& /bin/false
|
||||
{% else %}
|
||||
RUN curl -Lo /usr/bin/skydive "https://github.com/skydive-project/skydive/releases/download/v0.26.0/skydive" \
|
||||
RUN curl -o /usr/bin/skydive "https://github.com/skydive-project/skydive/releases/download/v0.26.0/skydive" \
|
||||
&& chmod +x /usr/bin/skydive
|
||||
{% endif %}
|
||||
|
||||
|
@ -36,7 +36,7 @@ COPY zun_sudoers /etc/sudoers.d/kolla_zun_sudoers
|
||||
RUN chmod 750 /etc/sudoers.d \
|
||||
&& chmod 640 /etc/sudoers.d/kolla_zun_sudoers
|
||||
|
||||
RUN curl -Lo /tmp/cni-plugins-v0.7.1.tgz https://github.com/containernetworking/plugins/releases/download/v0.7.1/cni-plugins-amd64-v0.7.1.tgz \
|
||||
RUN curl -o /tmp/cni-plugins-v0.7.1.tgz https://github.com/containernetworking/plugins/releases/download/v0.7.1/cni-plugins-amd64-v0.7.1.tgz \
|
||||
&& tar -C /opt -xzvf /tmp/cni-plugins-v0.7.1.tgz ./loopback \
|
||||
&& rm -f /tmp/cni-plugins-v0.7.1.tgz
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user