Use Debian mirror in CI jobs
There is Debian mirror on each CI worker so we should use it. Change-Id: Id3b55ac470a977be7ee7decdef3b49e8d89a130f
This commit is contained in:
parent
360d335e94
commit
2cf3f2309a
|
@ -64,10 +64,19 @@ RUN sed -i \
|
|||
{% endblock %}
|
||||
|
||||
{% block base_footer %}
|
||||
{% if base_distro == "ubuntu" %}
|
||||
## TODO(yoctozepto): replace base repo earlier as well (like RHEL-based do)
|
||||
{% if base_distro == "debian" %}
|
||||
{% endraw %}
|
||||
|
||||
RUN sed -i -e "s|http://deb.debian.org|http://{{ nodepool_mirror_host }}|" \
|
||||
-e "s|http://security.debian.org|http://{{ nodepool_mirror_host }}|" \
|
||||
/etc/apt/sources.list \
|
||||
&& apt-get update
|
||||
|
||||
{% raw %}
|
||||
{% elif base_distro == "ubuntu" %}
|
||||
{% endraw %}
|
||||
|
||||
## TODO(yoctozepto): replace base repo earlier as well (like RHEL-based do)
|
||||
RUN sed -i -e "s|http://archive.ubuntu.com|http://{{ nodepool_mirror_host }}|" \
|
||||
-e "s|http://ubuntu-cloud.archive.canonical.com/ubuntu|http://{{ nodepool_mirror_host }}/ubuntu-cloud-archive|" \
|
||||
/etc/apt/sources.list \
|
||||
|
|
Loading…
Reference in New Issue