Browse Source

new: [compose-core] make ``wait_for_tcp_port`` accept timeout as an optional third argument

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
cache-relation 1.5.13
Valentin Lab 3 years ago
parent
commit
a63cc709ab
  1. 2
      bin/compose-core

2
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

Loading…
Cancel
Save