annotate scripts/Docker/roundup_healthcheck @ 8526:0586f25eb25e

ruff: exclusions on imports ignore import locations and import used for side effect
author John Rouillard <rouilj@ieee.org>
date Fri, 20 Feb 2026 16:30:50 -0500
parents 8a9fc2d74740
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6797
a24ec63759f6 Docker fix healthcheck; allow modules; cleanup; set uid
John Rouillard <rouilj@ieee.org>
parents:
diff changeset
1 #! /bin/sh
a24ec63759f6 Docker fix healthcheck; allow modules; cleanup; set uid
John Rouillard <rouilj@ieee.org>
parents:
diff changeset
2
8467
8a9fc2d74740 fix: replace localhost with ip address in case localhost is ipv6 addr??
John Rouillard <rouilj@ieee.org>
parents: 7681
diff changeset
3 # change this if you are not using
8a9fc2d74740 fix: replace localhost with ip address in case localhost is ipv6 addr??
John Rouillard <rouilj@ieee.org>
parents: 7681
diff changeset
4 localhost=127.0.0.1
8a9fc2d74740 fix: replace localhost with ip address in case localhost is ipv6 addr??
John Rouillard <rouilj@ieee.org>
parents: 7681
diff changeset
5
7340
7b9bddda9d2d Add support for demo mode in docker.
John Rouillard <rouilj@ieee.org>
parents: 6797
diff changeset
6 # if there are multiple trackers, d=demo t=tracker ...
7b9bddda9d2d Add support for demo mode in docker.
John Rouillard <rouilj@ieee.org>
parents: 6797
diff changeset
7 # returns last one for testing that server is up. Does not test
7b9bddda9d2d Add support for demo mode in docker.
John Rouillard <rouilj@ieee.org>
parents: 6797
diff changeset
8 # each tracker.
6797
a24ec63759f6 Docker fix healthcheck; allow modules; cleanup; set uid
John Rouillard <rouilj@ieee.org>
parents:
diff changeset
9 tracker=$(ps -ef | sed -ne '/roundup-server/s/^.*\s\(\w*\)=.*$/\1/p')
8467
8a9fc2d74740 fix: replace localhost with ip address in case localhost is ipv6 addr??
John Rouillard <rouilj@ieee.org>
parents: 7681
diff changeset
10 wget -q -O /dev/null --proxy off --no-verbose http://$localhost:8080/"${tracker:-demo}"/

Roundup Issue Tracker: http://roundup-tracker.org/