From 084d2bbd32a051de618f1ce77d392f1f04a7bc9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20M=C3=BCller?= Date: Fri, 4 Aug 2023 15:07:54 +0200 Subject: [PATCH] Switch to legacy build backend for docker the new buildkit backend does no longer provide the stdout output that we'er expecting, so as a simple fix hard code the legacy one for now. This needs to be addressed in a larger rewrite. --- pytest_container/runtime.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pytest_container/runtime.py b/pytest_container/runtime.py index bc3ea38..33fd519 100644 --- a/pytest_container/runtime.py +++ b/pytest_container/runtime.py @@ -546,7 +546,13 @@ def _runtime_error_message() -> str: def __init__(self) -> None: super().__init__( - build_command=["docker", "build", "--force-rm"], + build_command=[ + "env", + "DOCKER_BUILDKIT=0", + "docker", + "build", + "--force-rm", + ], runner_binary="docker", _runtime_functional=self._runtime_functional, )