diff --git a/buildrunner/docker/multiplatform_image_builder.py b/buildrunner/docker/multiplatform_image_builder.py index 66a9475d..029e1941 100644 --- a/buildrunner/docker/multiplatform_image_builder.py +++ b/buildrunner/docker/multiplatform_image_builder.py @@ -260,7 +260,11 @@ def _build_single_image(self, images = docker.image.pull(tag_name) assert images, f"Failed to build {tag_name}" image_id = docker.image.inspect(tag_name).id - docker.image.remove(images, force=True) + # Removes the image from host, if this fails it is considered a warning + try: + docker.image.remove(images, force=True) + except python_on_whales.exceptions.DockerException as err: + LOGGER.warning(f"Failed to remove {images}: {err}") except python_on_whales.exceptions.DockerException as err: LOGGER.error(f"Failed to build {tag_name}: {err}") raise err diff --git a/buildrunner/steprunner/tasks/build.py b/buildrunner/steprunner/tasks/build.py index 19b28e9d..742c3541 100644 --- a/buildrunner/steprunner/tasks/build.py +++ b/buildrunner/steprunner/tasks/build.py @@ -38,7 +38,7 @@ def __init__( self._docker_client = buildrunner.docker.new_client( timeout=step_runner.build_runner.docker_timeout, ) - self.path = None + self.path = '.' self.dockerfile = None self.to_inject = {} self.image_to_prepend_to_dockerfile = image_to_prepend_to_dockerfile