zuul-jobs/roles/ensure-docker
Clark Boylan de070e195c Fix ensure-docker for docker-ce 23.0.0 upstream packaging
Upstream docker-ce recently released version 23.0.0. This version
appears to depend on apparmor but does not explicitly pull it in.
Not having apparmor results in these errors:

  error: exec: "apparmor_parser": executable file not found in $PATH.

Fix this by adding the apparmor package to the list of packages we
install from the distro for docker. Opensuse also uses apparmor but we
don't support installing docker from upstream on opensuse so we don't
need to make changes to opensuse just Debuntu.

Additionally, buildx appears to have been split out into its own package
now and we need to install it explicitly in order for multiarch CI
builds to be successful.

Change-Id: I7b6fd895f58de9e052af8efca27b9ed4bfac7036
2023-02-02 09:26:20 -08:00
..
defaults ensure-docker: refactor to use ensure-package-repositories 2020-05-01 15:49:30 +02:00
handlers ensure-docker: prevent issue on centos-7 where the socket does not exists 2021-04-21 17:12:09 +00:00
tasks Add names to include tasks 2022-11-07 10:37:53 +11:00
vars Fix ensure-docker for docker-ce 23.0.0 upstream packaging 2023-02-02 09:26:20 -08:00
README.rst Rename install-docker to ensure-docker for consistency 2020-04-04 15:41:29 -04:00

An ansible role to install docker and configure it to use mirrors if available.

Role Variables

URL to override the generated docker hub mirror url based on :zuulensure-docker.mirror_fqdn.