add client docker

This commit is contained in:
cppla
2026-02-26 18:10:24 +08:00
parent 6552959ef3
commit 7b9da31db0
6 changed files with 133 additions and 1 deletions

20
clients/entrypoint.sh Normal file
View File

@@ -0,0 +1,20 @@
#!/bin/sh
set -eu
if [ "$#" -gt 0 ]; then
exec "$@"
fi
case "${CLIENT:-linux}" in
linux|client-linux|client-linux.py)
exec python3 /app/client-linux.py
;;
psutil|client-psutil|client-psutil.py)
exec python3 /app/client-psutil.py
;;
*)
echo "Unknown CLIENT='$CLIENT'. Use 'linux' or 'psutil'." >&2
exit 2
;;
esac