Sha256: e5d9a818812babb2b61c7a44345e43c0e84784834d6dfd279fd72a81c2684b7d
Contents?: true
Size: 471 Bytes
Versions: 1
Compression:
Stored size: 471 Bytes
Contents
#!/bin/sh container_name="$1"; shift if [ -n "$1" ]; then container_port="$1"; shift fi container_ip_addr="$(docker-utils ip -w "${container_name}")" if [ -z "${container_port}" ]; then container_port=$(docker-utils exposed -p "${container_name}" | head -n 1) fi sleep_interval='0.1' until docker-utils "port-open?" "${container_name}" "${container_port}"; do sleep "${sleep_interval}" sleep_interval=$(echo "((${sleep_interval} * 2) % 10) + 0.1" | bc) done
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
docker-utils-0.1.37 | ./share/scripts/block-until-port-open |