Lab2
This commit is contained in:
@@ -12,6 +12,13 @@ PYTHON="${PYTHON:-python3}"
|
||||
if [ -x .venv-wsl/bin/python3 ]; then PYTHON=.venv-wsl/bin/python3; fi
|
||||
if [ -x .venv/bin/python3 ]; then PYTHON=.venv/bin/python3; fi
|
||||
|
||||
# Do not overwrite evidence/ with failures of a stand that is not running.
|
||||
if ! curl -fsS --max-time 5 http://localhost:8080/health/ready >/dev/null 2>&1 || ! curl -fsS --max-time 5 http://localhost:8081/health/ready >/dev/null 2>&1; then
|
||||
echo "API is not running. Start it first:" >&2
|
||||
echo " docker compose --profile tests up -d --build api api_short_ttl" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
containers() {
|
||||
docker compose ps -a --format '{{.Service}}\t{{.State}}\t{{.Status}}\t{{.CreatedAt}}'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user