(
client, image_data: bytes, image_dir: pathlib.Path, name, host_platform
)
| 30 | |
| 31 | |
| 32 | def build_docker_image( |
| 33 | client, image_data: bytes, image_dir: pathlib.Path, name, host_platform |
| 34 | ): |
| 35 | image_path = image_dir / f"image-{name}.{host_platform}" |
| 36 | |
| 37 | return ensure_docker_image(client, io.BytesIO(image_data), image_path=image_path) |
| 38 | |
| 39 | |
| 40 | def ensure_docker_image(client, fh, image_path=None): |
no test coverage detected