Browse Source

fix: [compose-core] not ignore port and timeout arguments

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

2
bin/compose-core

@ -3129,7 +3129,7 @@ get_healthy_container_ip_for_service () {
exit 1 exit 1
fi fi
wait_for_tcp_port "$container_network" "$container_ip:8069" 4 || {
wait_for_tcp_port "$container_network" "$container_ip:$port" "$timeout" || {
err "TCP port of ${DARKYELLOW}$service${NORMAL}'s container doesn't seem open" err "TCP port of ${DARKYELLOW}$service${NORMAL}'s container doesn't seem open"
echo " Please check that container is healthy. Here are last logs:" >&2 echo " Please check that container is healthy. Here are last logs:" >&2
docker logs "$container" --tail=10 | prefix " ${GRAY}|${NORMAL} " >&2 docker logs "$container" --tail=10 | prefix " ${GRAY}|${NORMAL} " >&2

Loading…
Cancel
Save