Mercurial > p > roundup > code
view scripts/Docker/roundup_healthcheck @ 7681:9ceb85d9df32
fix(docker): make healthcheck work when proxy is set
In docker setups that use a proxy for internet access, exclude the
wget healthcheck from using the proxy when connecting to localhost.
Fix from Norbert Schlemmer.
| author | Norbert Schlemmer "Noschvie on github.com" |
|---|---|
| date | Wed, 25 Oct 2023 09:42:11 -0400 |
| parents | cae50e4ba467 |
| children | 8a9fc2d74740 |
line wrap: on
line source
#! /bin/sh # if there are multiple trackers, d=demo t=tracker ... # returns last one for testing that server is up. Does not test # each tracker. tracker=$(ps -ef | sed -ne '/roundup-server/s/^.*\s\(\w*\)=.*$/\1/p') wget -q -O /dev/null --proxy off --no-verbose http://localhost:8080/"${tracker:-demo}"/
