From 6b24079b16b0fc0abde8035d20cafab8a7deb9b2 Mon Sep 17 00:00:00 2001 From: Stefan Verhoeven Date: Fri, 14 Sep 2018 12:28:35 +0200 Subject: [PATCH] Workaround for channel ready hang for Docker Refs #16 --- grpc4bmi/bmi_client_docker.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/grpc4bmi/bmi_client_docker.py b/grpc4bmi/bmi_client_docker.py index 2771e04..0574703 100644 --- a/grpc4bmi/bmi_client_docker.py +++ b/grpc4bmi/bmi_client_docker.py @@ -1,6 +1,7 @@ import shutil import os import errno +import time import docker @@ -42,6 +43,7 @@ def __init__(self, image, image_port=50051, host=None, input_dir=None, output_di user=user, remove=True, detach=True) + time.sleep(1) super(BmiClientDocker, self).__init__(BmiClient.create_grpc_channel(port=port, host=host)) def __del__(self):