Browse Source

CI: Use Docker proxy for pulls

Change-Id: I0c4d5e1ea16c6677813a334b38b3a22ad811531d
changes/59/770759/6
Michał Nasiadka 10 months ago
committed by Radosław Piliszek
parent
commit
a8c12def85
  1. 20
      tests/playbooks/pre.yml

20
tests/playbooks/pre.yml

@ -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

Loading…
Cancel
Save