From 683a4299f742c5f34619dd83170faf8bbc3e42b0 Mon Sep 17 00:00:00 2001 From: Eduardo Olivares Date: Mon, 11 Dec 2023 17:04:42 +0100 Subject: [PATCH] [tobiko-docker] Force docker version is lower than 7 tobiko-docker jobs use docker-compose to build docker images. With docker version 7.0.0, some issues have been found when the docker-compose command is executed. This patch installs docker version lower than 7. Change-Id: Idf1701b12d5ccf7ccf732225f9a748246d5c0800 --- roles/tobiko-ensure-docker-compose/tasks/main.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/roles/tobiko-ensure-docker-compose/tasks/main.yaml b/roles/tobiko-ensure-docker-compose/tasks/main.yaml index 3c630db14..97c11a6e4 100644 --- a/roles/tobiko-ensure-docker-compose/tasks/main.yaml +++ b/roles/tobiko-ensure-docker-compose/tasks/main.yaml @@ -1,11 +1,13 @@ --- - block: - - name: install latest Docker compose using pip + - name: install Docker compose using pip become: true - shell: | - set -x - python3 -m pip install docker-compose + pip: + name: "{{ item }}" + with_items: + - "docker<7.0" + - "docker-compose" - name: get docker compose location path shell: which docker-compose