aboutsummaryrefslogtreecommitdiff
path: root/roles/kolla-build-deps/tasks
diff options
context:
space:
mode:
authorMichal Nasiadka <mnasiadka@gmail.com>2026-06-11 21:47:52 +0100
committerMichal Nasiadka <mnasiadka@gmail.com>2026-06-18 08:54:32 +0000
commit4e66cc2f5982cdab26e3838411a37ea115fd7ef5 (patch)
treec1df2f352c8a5779ed29ee0f429c8ef7142fe302 /roles/kolla-build-deps/tasks
parent4e85395936cf17d6912b68fc51ca6c18e90156f7 (diff)
downloadkolla-4e66cc2f5982cdab26e3838411a37ea115fd7ef5.tar.gz
kolla-4e66cc2f5982cdab26e3838411a37ea115fd7ef5.zip
kolla-build: Add Docker BuildKit support via docker buildx build
Add --buildkit flag to use docker buildx build instead of the docker-py SDK. An optional --buildkit-builder selects a named buildx builder instance, enabling docker-container or remote drivers for multi-arch builds. --buildkit and --squash are mutually exclusive and rejected at startup. PushTask is skipped when buildkit is active; push is handled inline. Set buildkit as the new default. Change-Id: Idbf1d1bdc091bb84721f8006c2b916731b999859 Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com>
Diffstat (limited to 'roles/kolla-build-deps/tasks')
-rw-r--r--roles/kolla-build-deps/tasks/main.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/kolla-build-deps/tasks/main.yml b/roles/kolla-build-deps/tasks/main.yml
index 490f13edf..399aa4380 100644
--- a/roles/kolla-build-deps/tasks/main.yml
+++ b/roles/kolla-build-deps/tasks/main.yml
@@ -51,6 +51,12 @@
ansible.builtin.include_role:
name: "{{ container_engine }}_sdk"
+- name: Install docker-buildx-plugin
+ ansible.builtin.package:
+ name: docker-buildx-plugin
+ become: true
+ when: container_engine == 'docker'
+
- name: Ensure container engine socket is world-writable
ansible.builtin.file:
path: "{{ '/run/docker.sock' if container_engine == 'docker' else '/run/podman/podman.sock' }}"