CI: Use Docker proxy for pulls

Change-Id: I0c4d5e1ea16c6677813a334b38b3a22ad811531d
(cherry picked from commit a8c12def85)
This commit is contained in:
Michał Nasiadka 2021-01-14 09:49:07 +01:00 committed by Radosław Piliszek
parent 817af1575c
commit 51002b4f7d
1 changed files with 20 additions and 0 deletions

View File

@ -78,6 +78,26 @@
when: ansible_os_family == "RedHat"
become: true
- name: Ensure /etc/docker exists
become: true
file:
path: /etc/docker
state: directory
mode: 0755
- name: Configure registry-mirror in daemon.json
become: true
copy:
dest: /etc/docker/daemon.json
content: |
{
"registry-mirrors": [
"http://{{ zuul_site_mirror_fqdn }}:8082/"
]
}
# NOTE(yoctozepto): We configure Docker before installing it because Debuntu starts services
# during installation.
- name: Install Docker
package:
name: docker-ce