diff --git a/notebooks/api/0.8/10-container-images.ipynb b/notebooks/api/0.8/10-container-images.ipynb index 81ba6a05d13..35f26e791ff 100644 --- a/notebooks/api/0.8/10-container-images.ipynb +++ b/notebooks/api/0.8/10-container-images.ipynb @@ -133,6 +133,28 @@ "docker_config = sy.DockerWorkerConfig(dockerfile=custom_dockerfile_str)" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "62762ceb-38da-46f1-acac-cdf5bbf29513", + "metadata": {}, + "outputs": [], + "source": [ + "# test image build locally\n", + "test_build_res = docker_config.test_image_build(tag=\"openmined/custom-worker:0.7.8\")\n", + "test_build_res" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "0235e567-c65c-48fe-825d-79ea3e219166", + "metadata": {}, + "outputs": [], + "source": [ + "assert isinstance(test_build_res, sy.SyftSuccess), str(test_build_res)" + ] + }, { "cell_type": "code", "execution_count": null, @@ -1406,7 +1428,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.7" + "version": "3.9.7" } }, "nbformat": 4, diff --git a/packages/syft/src/syft/custom_worker/config.py b/packages/syft/src/syft/custom_worker/config.py index 1b55e34e021..c54d4f77c40 100644 --- a/packages/syft/src/syft/custom_worker/config.py +++ b/packages/syft/src/syft/custom_worker/config.py @@ -177,7 +177,6 @@ def test_image_build(self, tag: str, **kwargs) -> Union[SyftSuccess, SyftError]: kwargs["fileobj"] = io.BytesIO(self.dockerfile.encode("utf-8")) _, logs = client.images.build( tag=tag, - timeout=self.BUILD_MAX_WAIT, **kwargs, ) return SyftSuccess(message=iterator_to_string(iterator=logs))