Code Review
/
aaf
/
authz.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Add deploy plugin & enable tests
[aaf/authz.git]
/
auth
/
auth-service
/
src
/
main
/
resources
/
docker-compose
/
wait_for_host_port.sh
1
#!/bin/bash
2
3
set -e
4
5
host="$1"
6
port="$2"
7
shift
8
shift
9
cmd="$@"
10
11
until echo > /dev/tcp/${host}/${port} ; do
12
>&2 echo "${host}:${port} is unavailable - sleeping"
13
sleep 1
14
done
15
16
>&2 echo "${host}:${port} is up - executing command"
17
exec $cmd