From a63cc709aba3448818893de150c5ddc116825db3 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Tue, 11 Jan 2022 17:15:37 +0100 Subject: [PATCH] new: [compose-core] make ``wait_for_tcp_port`` accept timeout as an optional third argument Signed-off-by: Valentin Lab --- bin/compose-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/compose-core b/bin/compose-core index 3b76ffd..c85bd3d 100755 --- a/bin/compose-core +++ b/bin/compose-core @@ -911,7 +911,7 @@ export -f wait_docker_ip wait_for_tcp_port() { - local network=$1 host_port=$2 timeout=60 + local network=$1 host_port=$2 timeout=${3:-60} verb "Trying to connect to $host_port" bash_image=${DEFAULT_BASH_IMAGE:-docker.0k.io/bash} echo docker run --rm -i --network "$network" "$bash_image" >&2