Merge "CI: Use Docker proxy for pulls" into stable/victoria

This commit is contained in:
Zuul 2021-01-19 12:39:12 +00:00 committed by Gerrit Code Review
commit 1824b30eb3
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