From e791e38e3a0fca997260545abecbc8f37f0e42d4 Mon Sep 17 00:00:00 2001 From: kkkdeon <48198099+kkkdeon@users.noreply.github.com> Date: Thu, 1 Sep 2022 19:55:33 +0900 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20container=20=EA=B3=B5=EC=9C=A0?= =?UTF-8?q?=EB=A9=94=EB=AA=A8=EB=A6=AC=20option=20=EB=B3=80=EA=B2=BD=20(#4?= =?UTF-8?q?40)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python/mlad/core/kubernetes/controller.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/mlad/core/kubernetes/controller.py b/python/mlad/core/kubernetes/controller.py index db5d5ee0..020f888f 100644 --- a/python/mlad/core/kubernetes/controller.py +++ b/python/mlad/core/kubernetes/controller.py @@ -656,7 +656,8 @@ def _obtain_k8s_job_spec( volumes=_volumes, node_selector=node_selector, image_pull_secrets=[client.V1LocalObjectReference(name=secrets)] - if secrets else None + if secrets else None, + host_ipc=True ) ) ) @@ -754,7 +755,8 @@ def _obtain_k8s_deployment( volumes=_volumes, node_selector=node_selector, image_pull_secrets=[client.V1LocalObjectReference(name=secrets)] - if secrets else None + if secrets else None, + host_ipc=True ) ) ) From 276aa91525f20bcc80f28cd8eff86ac10da738b5 Mon Sep 17 00:00:00 2001 From: kkkdeon <48198099+kkkdeon@users.noreply.github.com> Date: Fri, 2 Sep 2022 17:20:36 +0900 Subject: [PATCH 2/3] fix: set inf time for docker client api call (#442) --- python/mlad/core/docker/controller.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/python/mlad/core/docker/controller.py b/python/mlad/core/docker/controller.py index e1636892..8ef9cdac 100644 --- a/python/mlad/core/docker/controller.py +++ b/python/mlad/core/docker/controller.py @@ -17,17 +17,21 @@ ) +DOCKER_API_TIMEOUT = None + + def get_cli(host=None) -> docker.client.DockerClient: from mlad.cli.config import get as get_config try: if host: - return docker.DockerClient(base_url=host) + return docker.DockerClient(base_url=host, timeout=DOCKER_API_TIMEOUT) else: config = get_config() if 'docker_host' in config: - return docker.DockerClient(base_url=config['docker_host']) + return docker.DockerClient(base_url=config['docker_host'], + timeout=DOCKER_API_TIMEOUT) else: - return docker.from_env() + return docker.from_env(timeout=DOCKER_API_TIMEOUT) except Exception: raise DockerNotFoundError From a89142ed03316ba3acc3fe65c02fcdd3544ce6f6 Mon Sep 17 00:00:00 2001 From: Hyoil LEE Date: Fri, 2 Sep 2022 08:29:09 +0000 Subject: [PATCH 3/3] update version 0.4.8 --- python/mlad/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/mlad/__init__.py b/python/mlad/__init__.py index 1e4826d6..5bf52d50 100644 --- a/python/mlad/__init__.py +++ b/python/mlad/__init__.py @@ -1 +1 @@ -__version__ = '0.4.7' +__version__ = '0.4.8'