zuul-jobs/roles/use-docker-mirror/tasks/mirror.yaml
Clark Boylan b007e86a0f Support new style mirror_info in use-docker-mirror
This adds new style mirror_info handling to use-docker-mirror to give us
greater control over whether or not docker hub should be mirrored. We
ignore old style configuration if new style is present which gives us
this control. Otherwise we fallback to the old behavior.

We also update the ensure-docker test jobs to be triggered by updates to
the use-docker-mirror roles as ensure-docker includes this role. We
should get decent functional testing coverage this way.

Change-Id: Ia1b216a6dd68bcafbe599777037c5d7b1b3e8201
2024-11-19 14:56:56 -08:00

16 lines
290 B
YAML

- name: Create docker directory
become: yes
file:
state: directory
path: /etc/docker
mode: 0755
- name: Install dockerhub proxy configuration
become: yes
template:
dest: /etc/docker/daemon.json
group: root
mode: 0644
owner: root
src: daemon.json.j2