Skip to content

Commit b480b05

Browse files
authored
Merge pull request #100 from caitlin615/healthcheck_port
Override health check port with $PORT in check.sh
2 parents 6df8150 + 0a0705b commit b480b05

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/check.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
if [[ "$HEALTHCHECK" == "true" ]]; then
22

3-
wget -qO- "http://localhost:8080/v1/docker-flow-proxy/ping"
3+
wget -qO- "http://localhost:${PORT:-8080}/v1/docker-flow-proxy/ping"
44

55
if [[ $? -ne 0 ]]; then
66
echo "ERROR: Failed to ping docker-flow-proxy"
@@ -17,7 +17,7 @@ if [[ "$HEALTHCHECK" == "true" ]]; then
1717
if [[ "$LISTENER_ADDRESS" != "" ]]; then
1818

1919
while true; do
20-
wget -qO- "http://localhost:8080/v1/docker-flow-proxy/successfulinitreload"
20+
wget -qO- "http://localhost:${PORT:-8080}/v1/docker-flow-proxy/successfulinitreload"
2121

2222
if [[ $? -eq 0 ]]; then
2323
exit 0

0 commit comments

Comments
 (0)